wood burning stoves
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

Win a copy of Elasticsearch in Action this week in the Big Data forum!
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.
It is sorta covered in the JavaRanch Style Guide.
subject: JTable (from Horizontal to Vertical) --