• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTables editor/renderer ?

 
seema prakash
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I just created a sample program after reading the tutorials.
The second column has JTextField as an editor. It converts all the text into uppercase and renders it the same way.

But, I want to have the cell in the second column to change based on a condition. For this I have the ChangeUpperCaseEditor class. When I use this as editor it does not render correctly. What may be the problem? Please help.

The sample code is:
 
Craig Wood
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
seema prakash
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot for the help. It works fine.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic