Ok, I found a problem. IN
package javax.swing.plaf.basic.BasicTabbedPaneUI;
he says something like this
// Rotate run array so that selected run is first if (shouldRotateTabRuns(tabPlacement)) { rotateTabRuns(tabPlacement, selectedRun); }
Too bad there's apparently no simple set-a-flag-and-there-you-go-way method to change this.
Although you don't care if you omitted the call to rotateTabRuns(tabPlacement, selectedRun); or change shouldRotateTabRuns(tabPlacement) , for that matter ... however, for this you will have to redefine a whole bunch of classes ... depending on which cry you use.
Inherits this as
Basic > Synth > Nimbus
And at each level of L&F, there are several classes to configure ... I did not count.
Hope this helps !: D
Edit Oh yes ... @mkorbel already provided his solution with this affair, why not use it?
source share