• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using editable JComboBox inside a JTable

 
Eli Castro
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 115
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to make a combobox enable in the header.please help me out..
selvas
 
Eli Castro
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This example should help you out. http://www2.gol.com/users/tame/swing/examples/JTableExamples9.html
eli
 
selvas kumars
Ranch Hand
Posts: 115
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks a lot for eli.
selvas
 
selvas kumars
Ranch Hand
Posts: 115
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 88
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic