I've been able to find the Class for Vertical Header Labels in JTables, but have been unable to integrate it.
I'm looking for a sample...
Bruce Houghton
Printable View
I've been able to find the Class for Vertical Header Labels in JTables, but have been unable to integrate it.
I'm looking for a sample...
Bruce Houghton
this might help you : Vertical Table Header Cell Renderer « Java Tips Weblog ? By the way it was the very first result of a google search...
Finally able to get back on. Anyway, Java Tips and WebLog is where I got the Renderer. My problem is integrating it into my code. It's used to render vertical labels in the headers of a JTable. They also have a Vertical Label Class and that works just fine. I looking for an example of use for the JTable vertical labels in the header renderer...
Bruce Houghton
Whats wrong with the 4 lines of code given in the blog article?
If you are having problems then post your Short, Self Contained, Correct Example because I can't guess what you might be doing wrong.
Problem solved…The VerticalTableHeaderCellRenderer Class requires a JKD > than 1.5. I’ve got many JApplets in production built with JBuilder(twelve years worth) and of course JBuilder is no longer, and JB2006 does not support JDK1.6. So it’s bite the bullet time, and learning Eclipse. It looks good so far.
Bruce Houghton
If you don't need sorting, you can reduce the code to remove the RowSorter stuff that was added in JDK 1.6 and the Icon enum associated with it.
But I agree, it's high time to move up from 1.5. Java 7 is just around thecorner.
db
Wow, if I had of know it would be this easy to convert from jBuilder to Eclipse, I would have done it years ago. The most noticeable improvement from JBuilder is Eclipse’s ability (Warnings) to point out Classes, Imports, etc that are never called. It has reduced the deliverable (Jar File) in one case from 939,000 Bytes to 306,280 Bytes.
Great stuff…
Bruce Houghton