Article View: borland.public.jbuilder.java.swing
Article #11231accelerator keys for text fields
From: Eddie Dickey
Date: Wed, 30 Jun 1999 00:00
Date: Wed, 30 Jun 1999 00:00
17 lines
1141 bytes
1141 bytes
hey, i have a logon dialog with a jtextfield for user id input and jpasswordfield for password input. i also have labels and a buttons for logon/quit. i have accelerator keys for the butons and textfields. my problem is this: when the user id textfield has focus and i type Alt-P (the accelerator associated with the password field) the focus jumps to the password field but the textfield retains and displays the letter 'P'. the password field exhibits the same behavior. my question is this: how do prevent the textfields from capturing & displaying the accelerator key? thanks, eddie dickey
Technical Details
Message-ID:
<377A4C00.F7635F6C@phitech.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,9cd101a6490cb3c7,start X-Google-Attributes: gid111d45,public From: Eddie Dickey <edickey@phitech.com> Subject: accelerator keys for text fields Date: 1999/06/30 Message-ID: <377A4C00.F7635F6C@phitech.com> X-Deja-AN: 495664547 Content-Transfer-Encoding: 7bit X-Accept-Language: en,ja Content-Type: text/plain; charset=us-ascii Organization: PhiTech Mime-Version: 1.0 Reply-To: edickey@phitech.com Newsgroups: borland.public.jbuilder.java.swing