This week's book giveaway is in the Artificial Intelligence forum.
We're giving away four copies of Pragmatic AI and have Noah Gift on-line!
See this thread for details.
Win a copy of Pragmatic AI this week in the Artificial Intelligence forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Dispalying combo in JTabvle Cell + more  RSS feed

 
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 ]
 
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!