Eduardo da Fonseca Melo <[EMAIL PROTECTED]> wrote:

> I was reading the "Java Look and Feel Guidlines" alpha draft and on page
> 33 it shows a JMenu objects with shortcuts associated to some menu itens
> of the JMenu object. I looked in the JMenuItem methods in Java 2 API for a
> method to add a shortcut to a JMenuItem but could not find anything
> useful. Does anybody knows how this can be achieved?

Perhaps it's time to re-state the scope of the Java2D mailing list.What was
it again?

Anyway, you might want to look at

    public void setMnemonic(int mnemonic)

in javax.swing.AbstractButton, but I don't know if that does what you want.

Cheers,
Pete


----- Original Message -----
From: Eduardo da Fonseca Melo <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: June 10, 1999 12:05 PM
Subject: [java2d] Adding a shortcut to a jmenuitem


>
> Greetings everyone.
>
> I was reading the "Java Look and Feel Guidlines" alpha draft and on page
> 33 it shows a JMenu objects with shortcuts associated to some menu itens
> of the JMenu object. I looked in the JMenuItem methods in Java 2 API for a
> method to add a shortcut to a JMenuItem but could not find anything
> useful. Does anybody knows how this can be achieved?
>
> Any suggestion would be appreciated greatly.
>
> Eduardo Melo.
>
>
> =====================================================================
> To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
> Java 2D Home Page: http://java.sun.com/products/java-media/2D/
>

=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 2D Home Page: http://java.sun.com/products/java-media/2D/

Reply via email to