JTabbedPane tab order problem

I'm using a JTabbedPane in WRAP_TAB_LAYOUT mode. I want to sort my tabs in alphabetical order but can't get it to work.

What I *want* is top to bottom, left to right ordering like this:

ABC

DEF

GHI

but if I add the tabs in sorted order, I get a layout that looks like this:

GHI

DEF

ABC

If I reverse the sort order before adding the tabs, it's closer, but still not right:

BCA

FED

IHG

Is it possible to get the result I'm looking for with JTabbedPane?

[540 byte] By [mattelkinsa] at [2007-10-2 5:36:11]
# 1
add them in this order: GHI, DEF, ABC... of course, that might not work if it determines each tab isn't on the right level....you might have to subclass JTabbedPane or the UI delegate for that.
bsampieria at 2007-7-16 1:46:45 > top of Java-index,Desktop,Core GUI APIs...