🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Keyboard Control of JComboBox in JTable

#8412
From: Thomas Fichtenbauer
Date: Wed, 20 Sep 2000 00:00
12 lines
1530 bytes
I cannot find the proper way to make a JComboBox within a JTable usable
with the keyboard. I have tried adding KeyListeners to the JComboBox and
overriding processKeyComponent but these methods don't get called unitl
the list box for the combo box appears. As I can tab through the table
OK. It I hit a key in the cell with a JComboBox as an Editor, the
ComboBox appears (closed). All keystrokes are ignored. Ideally I'd like
the down arrow to open the ComboBox and Pressing keys to jump to that
item (basic win32 JCombo behavior) I want the user to be able to use
this table without a mouse if they choose.

Pleeeeeazz has anyone a good solution for me???
It's very important for my project that i am working on
Technical Details
Message-ID: <39C8547E.2137A38F@xsoft.at>
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,1e922e3365cdafe3,start
X-Google-Attributes: gid111d45,public
From: Thomas Fichtenbauer <t.fichtenbauer@xsoft.at>
Subject: Keyboard Control of JComboBox in JTable
Date: 2000/09/20
Message-ID: <39C8547E.2137A38F@xsoft.at>
X-Deja-AN: 671922889
Cache-Post-Path: newsproxy1.debis.at!unknown@hide.xsoft.at
Content-Transfer-Encoding: 7bit
X-Accept-Language: de
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: abuse@kpnqwest.at
X-Trace: nreader1.kpnqwest.net 969430143 53.244.2.18 (Wed, 20 Sep 2000 08:09:03 MET DST)
Organization: debis.at
X-Cache: nntpcache 2.4.0b5 (see http://www.nntpcache.org/)
MIME-Version: 1.0
NNTP-Posting-Date: Wed, 20 Sep 2000 08:09:03 MET DST
Newsgroups: borland.public.jbuilder.java.swing