🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

JMenuItem accelerator problem

#10269
From: David Sykes
Date: Thu, 21 Oct 1999 00:00
16 lines
1076 bytes
Hello all,

I am having a small problem with a JMenuItem accelerator.

I have a JDialog, with a JMenuBar. JMenuBar contains one non-visible JMenu.
One of the JMenuItems has an "Alt-S" defined as the accelerator for it.

On the JDialog box I have a JdbTextField, and a JComoBox. Pushing Alt-S
causes the menu item action listener to be called......but, it also sends
the keystroke to whichever control is active.

How can I get it to not send the keystroke to the control!??!!

Any help will be greatly appreciated, thanks in advance,
David Sykes
edv consulting
Technical Details
Message-ID: <7uo0bv$8fr20@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,a07363f3340a1dba,start
X-Google-Attributes: gid111d45,public
From: "David Sykes" <SykesD@bigfoot.com>
Subject: JMenuItem accelerator problem
Date: 1999/10/21
Message-ID: <7uo0bv$8fr20@forums.borland.com>
X-Deja-AN: 539010977
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Organization: Another Netscape Collabra Server User
X-MSMail-Priority: Normal
Newsgroups: borland.public.jbuilder.java.swing