How to create vertical tabs in Java?

I would like to get the effect as if the JTabbedPane rotates 90 degrees counterclockwise (only the tabs, but not the contents inside the tabs). What is the best way to implement this in Java?

+5
source share
5 answers

In this decision:

http://oreilly.com/pub/a/mac/2002/03/22/vertical_text.html

The text was painted vertically and was used as an icon on the tab. This way you do not need to change the JTabbedPane, you just use the custom tab icon.

Of course, you will also need to specify the tab location on the left.

+5
source

JToolBar orientation, VERTICAL BorderLayout, EAST WEST. Icon.

+4

setTabPlacement(SwingConstants.LEFT)

+3

tabpane, , , , g2d - :

super(g2d.rotate(Pi/2));

0

All Articles