• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Dispalying combo in JTabvle Cell + more

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic