Article View: borland.public.jbuilder.java.swing
Article #51menuItem.setAccelerator
From: Kevin Copps
Date: Mon, 19 Jul 1999 00:00
Date: Mon, 19 Jul 1999 00:00
15 lines
1115 bytes
1115 bytes
In Jbuilder 3 how do you use the Inspector on a menuItem to assign an
accelerator?
For example, I want Ctrl+O keystroke to activate a File|Open menu item.
I know how to write the code:
menuItem.setAccelerator(KeyStroke.getKeyStroke(
KeyEvent.VK_O, ActionEvent.CTRL_MASK));
But I want to do it automatically in the Inspector. The Inspector appears to
have an accelerator field for menuItem's but when I try to choose from the
drop list only "<none>" appears.
Thanks in advance...
Technical Details
Message-ID:
<7mve94$fbj9@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,5e3c012b67f5bd44,start X-Google-Attributes: gid111d45,public X-Google-Thread: fa3e3,5e3c012b67f5bd44,start X-Google-Attributes: gidfa3e3,public From: "Kevin Copps" <NOSPAM_kc@isc.tamu.edu> Subject: menuItem.setAccelerator Date: 1999/07/19 Message-ID: <7mve94$fbj9@forums.borland.com> X-Deja-AN: 502737941 X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Organization: Another Netscape Collabra Server User X-MSMail-Priority: Normal Newsgroups: borland.public.jbuilder.java.swing,borland.public.jbuilder.ide