Article View: borland.public.jbuilder.java.swing
Article #10492JTables and cell editors
From: Sam Wilson
Date: Tue, 14 Sep 1999 00:00
Date: Tue, 14 Sep 1999 00:00
20 lines
1543 bytes
1543 bytes
I am using a JComboBox as a JTable cell editor. If the first item in the list is the current value and I reselect this value from the drop down list, the combo box does not close. The drop down list disappears but the combo box is still visible. I guess that it is not telling the table that editing has finished. Any suggestions? I also have a JPanel as both a renderer and an editor for another column. I have placed JButtons on these panels. The problem is that clicking on one of the buttons causes it to be stuck in the down position. It takes another click to make it reset. From this point on the buttons function correctly (until another cell is selected). I believe the problem is caused by mouse clicks not being forwarded to the buttons until the cell is being edited (after the first click). Is it possible to put all cells in a column permanently in the editing state. Alternatively any other way of embedding buttons in a table that allows them to work with one click would be appreciated Thanks, Sam.
Technical Details
Message-ID:
<7rlnm6$o0r18@forums.borland.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,93f6ca68d1336006,start X-Google-Attributes: gid111d45,public From: "Sam Wilson" <sam.wilson@cenes.co.uk> Subject: JTables and cell editors Date: 1999/09/14 Message-ID: <7rlnm6$o0r18@forums.borland.com> X-Deja-AN: 525000237 X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Organization: Another Netscape Collabra Server User X-MSMail-Priority: Normal Newsgroups: borland.public.jbuilder.java.swing