Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #3919
| From | sundarmcakms@gmail.com.remove-dii-this |
|---|---|
| Subject | setAccelerator method and |
| Message-ID | <c905d0df-3b95-46a9-a2da-bf66e06a177a@v39g2000pro.googlegroups.com> (permalink) |
| Newsgroups | comp.lang.java.gui |
| Date | 2011-04-27 15:47 +0000 |
| Organization | TDS.net |
To: comp.lang.java.gui 1) i want to set shortcut for a menu item. ctrl+any alpahabet but when i use this type of passing arguments mf_new.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_N,KeyEvent.VK_CONTROL)); i got it as shift+n when i use this type of passing arguments mf_open.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_CONTROL,KeyEvent.VK_O)); i got meta+shift+alt+ctrl+.... and so on.. 2) in a jframe class i have a jtextarea and implemented textListener i have given various possibilities like addTextListener() ta.addTextListener() ta.addTextListener(this) this.addTextListener(ta) addTextListener() but it is coming error when i compile it... --- * 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 | Next — Next in thread | Find similar | Unroll thread
setAccelerator method and sundarmcakms@gmail.com.remove-dii-this - 2011-04-27 15:47 +0000 Re: setAccelerator method "Daniele Futtorovic" <daniele.futtorovic@THRWHITE.remove-dii-this> - 2011-04-27 15:47 +0000
csiph-web