Multiline tabs

anyone knows how to create tab panel with tabs placed in 2 or more rows (2,3,4,...). Like this:http://javootoo.l2fprod.com/plaf/quaqua/quaqua_tabbedpane.png
[170 byte] By [mila] at [2007-11-27 2:37:30]
# 1
if you're talking about the textPane to tabbedPane tabs, that is the default
Michael_Dunna at 2007-7-12 2:57:45 > top of Java-index,Desktop,Core GUI APIs...
# 2

I thought it's absolutely clearly what I meaned, but maybe I was wrong :)

simple what I want is to create MORE lines of tabs than one.

Example:

I want to make 10 tabs. First 5 tabs will bew in one row (line), second 5 in other row (line). Like this:

tab1 tab2 tab3 tab4 tab5

tab 6 tab7 tab8 tab9 tab10

Or like in that picture...

mila at 2007-7-12 2:57:45 > top of Java-index,Desktop,Core GUI APIs...
# 3

tab 6 tab7 tab8 tab9 tab10

tab1 tab2 tab3 tab4 tab5

is the default behavior (1.5.0_05), depending on the width of the tabbedPane.

in Windows L&F, it will appear as per your description by clicking on any of

the tabs 6 to 10

tab1 tab2 tab3 tab4 tab5

tab 6 tab7 tab8 tab9 tab10

Michael_Dunna at 2007-7-12 2:57:45 > top of Java-index,Desktop,Core GUI APIs...
# 4

but i want to decide how tabs will on all rows (and also to specify width, if possible). This default behaviour do it antisymetric, for example 6 in first row, 4 on second (and width is changed). It doesn't look good...But it looks like tab is customizable in very very limited way...You can do everything what you want with buttons, panels, labels, but with tab almost nothing.

mila at 2007-7-12 2:57:46 > top of Java-index,Desktop,Core GUI APIs...
# 5

> You can do everything what

> you want with buttons, panels, labels, but with tab

> almost nothing.

You can do anything you want with tabbed panes if you write a UI delegate for it. It's difficult, but it can be done. The question is how much time you're willing to put into it.

kirillga at 2007-7-12 2:57:46 > top of Java-index,Desktop,Core GUI APIs...