Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #2282

menu accelerator

From "Chameleon" <chameleon@THRWHITE.remove-dii-this>
Subject menu accelerator
Message-ID <faa2al$f5p$2@volcano1.grnet.gr> (permalink)
Newsgroups comp.lang.java.gui
Date 2011-04-27 15:38 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui
I use netbeans.
In "Build" menu there is an action named "Stop Build/Run".
I assign to this JMenuItem the accelerator "Escape".
In "Build" menu there is an action named "Build Main Project".
I assign to this JMenuItem the accelerator "F7".

How I this possible in Java?
I try this in my programs MANY times but nothing.
Single keys doesn't work like accelerators.
They need a modifier key.

So, how the netbeans do this?

thanks

PS: I want to add an "F1" accelerator to menuitem:   help->help index

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

Back to comp.lang.java.gui | Previous | NextNext in thread | Find similar | Unroll thread


Thread

menu accelerator "Chameleon" <chameleon@THRWHITE.remove-dii-this> - 2011-04-27 15:38 +0000
  Re: menu accelerator "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:38 +0000
    Re: menu accelerator "Chameleon" <chameleon@THRWHITE.remove-dii-this> - 2011-04-27 15:38 +0000
      Re: menu accelerator "RedGrittyBrick" <redgrittybrick@THRWHITE.remove-dii-this> - 2011-04-27 15:38 +0000
        Re: menu accelerator "Chameleon" <chameleon@THRWHITE.remove-dii-this> - 2011-04-27 15:38 +0000

csiph-web