This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JTable Rendering Problem  RSS feed

 
fahad siddiqui
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have rendered a Panel inside the cells of a JTable using a customCellRenderer class of my own.

My Panel contains some textfield, radio buttons etc.
When i click on the panel for editing these textfields or something else,
it displays me a string detail of Jpanel:
javax.swing.JPanel[,-329,-54,0x0,invalid,alignmentX=0.0,alignmentY=0.0,border=,flags=9,maximumSize=,minimumSize=,preferredSize=]

Also, this JTable keeps on getting updated with newer rows at runtime.

How do i make my JPanel behave normally, so that i can edit my textfields etc..

Please help asap.
Extremely important.
Thanks a lot in advance.
 
Akhshay Ray
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have to supply a custom editor and use the same panel.
 
fahad siddiqui
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could you provide some example code?
Also, what do you mean by use the same panel?
Please elaborate
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!