wood burning stoves*
The moose likes Swing / AWT / SWT and the fly likes Dispalying combo in JTabvle Cell + more Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Dispalying combo in JTabvle Cell + more" Watch "Dispalying combo in JTabvle Cell + more" New topic
Author

Dispalying combo in JTabvle Cell + more

Girish Varde
Greenhorn

Joined: Jul 09, 2004
Posts: 23
I want to display comobox in some of my JTable columns. Also, i want the user to enter edit mode directly on single click for all the columns (With combo editor and normal cells)

My code follws, currently it has some problem such as it hangs after clicking on combo cell.

Please suggest a solution.

Thanks and regards,

Girish Varde

---------------------------------------------------------------------

--------------------------------------------------------------------------------------------------

[GDB - Added UBB Code Tags so that this post is readable.]
[ March 21, 2005: Message edited by: Gregg Bolinger ]
Suria Narayanan
Greenhorn

Joined: Mar 21, 2005
Posts: 2
Please narrow down to the problem.
- Try to catch exceptions and see any indefinite method calls are going on.
- As a simple mechanism, see where actual issue starts- is in JTable itself or in cell renderer/editor.
Girish Varde
Greenhorn

Joined: Jul 09, 2004
Posts: 23
Hi Suria,

Thanks for your reply,

It executes fully and successfully, doesn't enter endless loop. I debugged.

After adding return true in method stopCellEditing, it now displays everything properly except,

it does not edit properly using combo. It allows to select, but when you go tho other cell, it aotomatically selects choice1 of combo.

It should update tablemodel on its own when cell looses focus which is not happening.

Thanks and regards,

Girish Varde
 
Don't get me started about those stupid light bulbs.
 
subject: Dispalying combo in JTabvle Cell + more
 
Similar Threads
Checkbox editor for JTable column
Want to Edit cells in a JTable
JTable selected row problem
JScrollPane within JTable cell issue
jtable rendering problem