mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-06 14:00:55 +03:00
JIDE: JideTabbedPane: hover tab event if mouse is over close button
unfortunately it is not possible to replace JIDEs arrow and close buttons with own implementations
This commit is contained in:
@@ -213,7 +213,8 @@ public class FlatJideTabbedPaneUI
|
||||
{
|
||||
// paint tab background
|
||||
boolean enabled = _tabPane.isEnabled();
|
||||
g.setColor( enabled && _tabPane.isEnabledAt( tabIndex ) && _indexMouseOver == tabIndex
|
||||
g.setColor( enabled && _tabPane.isEnabledAt( tabIndex ) &&
|
||||
(_indexMouseOver == tabIndex || (_closeButtons != null && ((JideTabbedPane.NoFocusButton)_closeButtons[tabIndex]).isMouseOver()))
|
||||
? hoverColor
|
||||
: (enabled && isSelected && _tabPane.hasFocus()
|
||||
? focusColor
|
||||
|
||||
Reference in New Issue
Block a user