🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.jbuilder.java.swing
2 messages
2 total messages Started by arong Tue, 24 May 2005 02:10
JMenuItem
#443
Author: arong
Date: Tue, 24 May 2005 02:10
5 lines
918 bytes
hi,

How to do set hot key for JMenuItem.

such as : MenuItem Caption set &File in other IDE.
Re: JMenuItem
#449
Author: Lori M Olson [TeamB]
Date: Tue, 24 May 2005 18:53
36 lines
1931 bytes
arong wrote:
> hi,
> 
> How to do set hot key for JMenuItem.
> 
> such as : MenuItem Caption set &File in other IDE.
> 
> 
> 

There are 2 different types of hot-key activation for menus.  One is 
call an "Accelerator" and one is call an "Mnemonic".  You should look up 
the javadocs on setAccelerator and setMnemonic.  You are probably 
looking for setMnemonic.

You should really look up the Java Swing Tutorial on http://java.sun.com 
for questions like this.

-- 

Regards,

Lori Olson [TeamB]

------------

Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.

Google Advanced Newsgroup Search
     http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
     http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
     http://www.visi.com/~gyles19/fom-serve/cache/1.html
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads