This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes JTables editor/renderer ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTables editor/renderer ?" Watch "JTables editor/renderer ?" New topic

JTables editor/renderer ?

seema prakash
Ranch Hand

Joined: Nov 17, 2004
Posts: 59

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

Joined: Jan 14, 2004
Posts: 1535
seema prakash
Ranch Hand

Joined: Nov 17, 2004
Posts: 59
Thanks a lot for the help. It works fine.
Have you checked out Aspose?
subject: JTables editor/renderer ?
It's not a secret anymore!