This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Swing / AWT / SWT and the fly likes Using editable JComboBox inside a JTable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Using editable JComboBox inside a JTable" Watch "Using editable JComboBox inside a JTable" New topic
Author

Using editable JComboBox inside a JTable

Eli Castro
Greenhorn

Joined: Jan 16, 2001
Posts: 3
Hello,
I have an editable JComboBox as editor for one row. I want to be able to tab into the cell and get the cursor inside the combo box. What I have to do now is double click after I tab. Is there a way to control, or maybe send an event so that it seems automatic? I was looking at PropertyChangeListener, but I'm not sure if I'm in the right track. Does anyone have any ideas, or examples?
I would REALLY appreciate it!!!
eli...
selvas kumars
Ranch Hand

Joined: Jan 06, 2001
Posts: 115
how to make a combobox enable in the header.please help me out..
selvas
Eli Castro
Greenhorn

Joined: Jan 16, 2001
Posts: 3
This example should help you out. http://www2.gol.com/users/tame/swing/examples/JTableExamples9.html
eli
selvas kumars
Ranch Hand

Joined: Jan 06, 2001
Posts: 115
thanks a lot for eli.
selvas
selvas kumars
Ranch Hand

Joined: Jan 06, 2001
Posts: 115
hai eli,
thaks for the useful info.I am doing filtering in Jtable.
if the user selects from the combo which is in the header only
those info should display other rows should not be visible(similar to ms-excel).how is go about this please?
selvas
Colin Kenworthy
Ranch Hand

Joined: Aug 06, 2001
Posts: 88
That link no longer exists - could be found here http://www.senun.com/Left/Programming/Java_old/Examples_swing/JTableExamples9.html
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using editable JComboBox inside a JTable