Win a copy of Spring in Action (5th edition) this week in the Spring 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:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!