mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-08 15:00:54 +03:00
JIDE: JideTabbedPane: fixed hover background of close button on selected tab
This commit is contained in:
@@ -584,12 +584,15 @@ public class FlatJideTabbedPaneUI
|
|||||||
if( !scrollableTabLayoutEnabled() || !isShowCloseButton() || !isShowCloseButtonOnTab() )
|
if( !scrollableTabLayoutEnabled() || !isShowCloseButton() || !isShowCloseButtonOnTab() )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Color background = _tabPane.getBackground();
|
||||||
|
|
||||||
for( int i = 0; i < _closeButtons.length; i++ ) {
|
for( int i = 0; i < _closeButtons.length; i++ ) {
|
||||||
JButton closeButton = _closeButtons[i];
|
JButton closeButton = _closeButtons[i];
|
||||||
if( closeButton.getWidth() == 0 || closeButton.getHeight() == 0 )
|
if( closeButton.getWidth() == 0 || closeButton.getHeight() == 0 )
|
||||||
continue; // not visible
|
continue; // not visible
|
||||||
|
|
||||||
closeButton.setBounds( getTabCloseBounds( i ) );
|
closeButton.setBounds( getTabCloseBounds( i ) );
|
||||||
|
closeButton.setBackground( background );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user