FlatLaf
FlatLaf copied to clipboard
Disable tab row rotation
When there are several tab runs/rows they switch around so that the active tab is always in the bottom row. This means that the location of tabs constantly changes as tabs in different rows are selected, which can be irritating.
It's possible to turn this of by overwriting a method of the BasicTabbedPaneUI
, for example when manually setting the UI in a JTabbedPane:
setUI(new FlatTabbedPaneUI() {
@Override
protected boolean shouldRotateTabRuns(int tabPlacement) {
return false;
}
});
However a property to disable this globally for all tab panes would be nice. Maybe something like TabbedPane.rotateTabRuns = false
?
thanks, implemented in latest snapshot: https://github.com/JFormDesigner/FlatLaf#snapshots
Screenshot with TabbedPane.rotateTabRuns = false
:
Awesome, thanks. 👍