Article View: borland.public.jbuilder.java.swing
Article #9283Re: VK_TAB in JComboBox
From: John P. McGrath
Date: Thu, 20 Apr 2000 00:00
Date: Thu, 20 Apr 2000 00:00
21 lines
1300 bytes
1300 bytes
On Wed, 19 Apr 2000 12:40:48 +0200, Andreas Schnell wrote: > I have several JComboBoxes in a dialog. The problem is that > I'd like to manage the focus by an external program. You might look into writing your own FocusManager implementation. > I overwrote the isManagingFocus from JTextComponent, to get > the VK_TAB-Key in the KeyListener. This works very good with > JTextField, but not with the JComboBoxes. They don't react > on an Key, wheter they are editable or not. This has been a significant problem area, and Sun has changed it several times trying to find a good solution. It changed between JDK 1.1 and JDK 1.2, again between JDK 1.2 and JDK 1.3 beta, and again between JDK 1.3 RC1 and JDK 1.3 RC2. It looks like they have finally come up with a good solution. -- John P. McGrath <JPMcGrath@fast.net> <jpm@nscs.fast.net>
Technical Details
Message-ID:
<MPG.136878488ded15c5989898@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<38fd8b2b@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,b38296f9864515ac X-Google-Attributes: gid111d45,public From: John P. McGrath <JPMcGrath@fast.net> Subject: Re: VK_TAB in JComboBox Date: 2000/04/20 Message-ID: <MPG.136878488ded15c5989898@forums.borland.com> X-Deja-AN: 613483224 References: <38fd8b2b@dnews> Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.swing