• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Using editable JComboBox inside a JTable

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
how to make a combobox enable in the header.please help me out..
selvas
 
Eli Castro
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks a lot for eli.
selvas
 
selvas kumars
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Never trust an airline that limits their passengers to one carry on iguana. Put this tiny ad in your shoe:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic