🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #449

Re: JMenuItem

#449
From: 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
Technical Details
Message-ID: <4293781a$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!newshub.sdsu.edu!border1.nntp.dca.giganews.com!nntp.giganews.com!news.moat.net!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <42928c61@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,3e61a87b5b2165d2
X-Google-Attributes: gid111d45,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Tue, 24 May 2005 12:53:16 -0600
From: "Lori M Olson [TeamB]" <javadragon@techie.com>
User-Agent: Mozilla Thunderbird 1.0.2 (Macintosh/20050317)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing
Subject: Re: JMenuItem
References: <42928c61@newsgroups.borland.com>
In-Reply-To: <42928c61@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 142.179.181.200
Message-ID: <4293781a$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1116960794 142.179.181.200 (24 May 2005 11:53:14 -0700)
Lines: 36
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!newshub.sdsu.edu!border1.nntp.dca.giganews.com!nntp.giganews.com!news.moat.net!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail