File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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.
I agree. Here's the link:
subject: JTables editor/renderer ?
It's not a secret anymore!