This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dispalying combo in JTabvle Cell + more

 
Girish Varde
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic