File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTable (from Horizontal to Vertical) -- " Watch "JTable (from Horizontal to Vertical) -- " New topic
Author

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) --