🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: menuItem.setAccelerator

#50
From: Tor Iver Wilhelmsen
Date: Tue, 20 Jul 1999 00:00
12 lines
984 bytes
"Kevin Copps" <NOSPAM_kc@isc.tamu.edu> writes:

> 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.

Add a KeyStroke object in the editor:

KeyStroke ctrlO = KeyStroke.getKeyStroke(KeyEvent.VK_O,
   Event.CTRL_MASK);

Then, "ctrlO" should appear in the dropdown list.
Technical Details
Message-ID: <u908bg643.fsf@sds.no>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7mve94$fbj9@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,5e3c012b67f5bd44
X-Google-Attributes: gid111d45,public
X-Google-Thread: fa3e3,5e3c012b67f5bd44
X-Google-Attributes: gidfa3e3,public
From: Tor Iver Wilhelmsen <tor.wilhelmsen@sds.no>
Subject: Re: menuItem.setAccelerator
Date: 1999/07/20
Message-ID: <u908bg643.fsf@sds.no>
X-Deja-AN: 503031302
Sender: towi@SDSA1761
References: <7mve94$fbj9@forums.borland.com>
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.swing,borland.public.jbuilder.ide