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 JTable (from Horizontal to Vertical) -- Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTable (from Horizontal to Vertical) -- " Watch "JTable (from Horizontal to Vertical) -- " New topic

JTable (from Horizontal to Vertical) --

Sam Kebab
Ranch Hand

Joined: Jan 23, 2002
Posts: 104
Is there a class that implements a method that i can call to change the usual Jtable (i.e. left to right top to bottom) with column heads on top;
to a JTable with column heads on the left?
In other words, can i change the orientation from horizontal to vertical?
Thank You.
Paul Stevens
Ranch Hand

Joined: May 17, 2001
Posts: 2823
Take a look at the examples here. There is one with row headers. Not exacly what you want but close.
I agree. Here's the link:
subject: JTable (from Horizontal to Vertical) --
It's not a secret anymore!