mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-14 07:47:12 -06:00
TabbedPane: disable all items in "Show Hidden Tabs" popup menu if tabbed pane is disabled
This commit is contained in:
@@ -21,6 +21,8 @@ FlatLaf Change Log
|
|||||||
(issue #493)
|
(issue #493)
|
||||||
- TextArea, TextPane and EditorPane: No longer select all text when component is
|
- TextArea, TextPane and EditorPane: No longer select all text when component is
|
||||||
focused for the first time. (issue #498; regression in FlatLaf 2.0)
|
focused for the first time. (issue #498; regression in FlatLaf 2.0)
|
||||||
|
- TabbedPane: Disable all items in "Show Hidden Tabs" popup menu if tabbed pane
|
||||||
|
is disabled.
|
||||||
|
|
||||||
#### Incompatibilities
|
#### Incompatibilities
|
||||||
|
|
||||||
|
|||||||
@@ -2016,7 +2016,7 @@ public class FlatTabbedPaneUI
|
|||||||
menuItem.setOpaque( true );
|
menuItem.setOpaque( true );
|
||||||
}
|
}
|
||||||
|
|
||||||
if( !tabPane.isEnabledAt( tabIndex ) )
|
if( !tabPane.isEnabled() || !tabPane.isEnabledAt( tabIndex ) )
|
||||||
menuItem.setEnabled( false );
|
menuItem.setEnabled( false );
|
||||||
|
|
||||||
menuItem.addActionListener( e -> selectTab( tabIndex ) );
|
menuItem.addActionListener( e -> selectTab( tabIndex ) );
|
||||||
|
|||||||
Reference in New Issue
Block a user