Good day.
For an optimal occupation of a GUI panel, it should be better that my narrow table (2 columns / lot of rows) be horizontal instead of vertical. That means:
- 2 rows / lots of columns
- headers not on top of columns but at the left side
- Selection by column instead of by row (light blue)
... as if the table had revolved on its diagonal
(The table then is to be enclosed in a JScrollPane)
I'm using the JTable class of 'javax.swing' package of the
Java SE 6 platform. I don't see properties, methods nor models to operate this rotation. Isn't it achievable in Java SE and Swing ?
I thought this Line/Row inversion was a frequently asked requirement.
Solution ?: A subclass of JTable where columns and row properties are managed to offer the inversion. But then,
- what with the elimination of the original column headers ?
- how to have row headers ?
Thanks for any idea, code example, ...