wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes Combo Selection - Trouble Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Combo Selection - Trouble" Watch "Combo Selection - Trouble" New topic
Author

Combo Selection - Trouble

Arun Sanker
Ranch Hand

Joined: Mar 21, 2007
Posts: 44
Hi guys,

Have made a small test application to tell my problem.
Have rendered a table with a comboBox.Everything works fine,the way I wanted it to be, apart from the following things.


[1]
When the user Doubleclicks on one of the combocells,the comboitem in the combobox is already displayed on the tablecell.I dont want it to be like that.

I want the comboitem to be displayed on the tablecell only when the user explicitly goes and selects the comboitem.If the user doublciks on the cell as said before,the old cell value should remain.

[2]
How to catch a combo close up event when the user explicitly selects an item from the combo.Because I want to do something when the user does so....

see Pic:

http://i337.photobucket.com/albums/n399/turniphorse/ComboSelection.jpg


Iam attaching the code(running) also along with this....

Any help is greatly appreciated.

Thanks.

 
 
subject: Combo Selection - Trouble
 
Similar Threads
Rendering problem
JTable selected row problem
Swing JCombobox and JTable issue
JComboBox in a JTable
Netbeans GUI Code Doubt