-
Enhancement
-
Resolution: Unresolved
-
P5
-
7
-
x86
-
linux
A DESCRIPTION OF THE REQUEST :
Add a way to have the protected method, BasicTabbedPaneUI.shouldRotateTabRuns(), return a user specified value, for example with a client property. The Metal LAF and its derivatives do this, but many other LAF's out there in the wild just extend from the Basic LAF and thus inherit this behaviour.
JUSTIFICATION :
Having the tabs rotate to the front when you click on one in a different level becomes confusing when there are lots of tabs.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Have a client property, eg. "JTabbedPane.rotateTabRuns" that enables or disables this feature, so that tabs in LAF's that extend from the Basic LAF have this as a configurable option.
ACTUAL -
When clicking on a tab that isn't in the front row, the tab runs rotate so that the clicked tab is now in the front row.
---------- BEGIN SOURCE ----------
// Any program with multiple tabs and that isn't using the Metal LAF
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
tabs.putClientProperty("JTabbedPane.rotateTabRuns", Boolean.FALSE);
Add a way to have the protected method, BasicTabbedPaneUI.shouldRotateTabRuns(), return a user specified value, for example with a client property. The Metal LAF and its derivatives do this, but many other LAF's out there in the wild just extend from the Basic LAF and thus inherit this behaviour.
JUSTIFICATION :
Having the tabs rotate to the front when you click on one in a different level becomes confusing when there are lots of tabs.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Have a client property, eg. "JTabbedPane.rotateTabRuns" that enables or disables this feature, so that tabs in LAF's that extend from the Basic LAF have this as a configurable option.
ACTUAL -
When clicking on a tab that isn't in the front row, the tab runs rotate so that the clicked tab is now in the front row.
---------- BEGIN SOURCE ----------
// Any program with multiple tabs and that isn't using the Metal LAF
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
tabs.putClientProperty("JTabbedPane.rotateTabRuns", Boolean.FALSE);