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:
Karl Tauber
2019-11-09 18:21:25 +01:00
parent 7c2b2d7f26
commit 883b282cd8

View File

@@ -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