Skip to content

Commit c25eb45

Browse files
committed
JSTabbedPaneUI optimization for not repainting on lost focus if ntabs 1
1 parent f8d2b2e commit c25eb45

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sources/net.sf.j2s.java.core/src/swingjs/plaf/JSTabbedPaneUI.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3786,7 +3786,8 @@ public void focusGained(FocusEvent e) {
37863786
}
37873787
@Override
37883788
public void focusLost(FocusEvent e) {
3789-
repaintTab(focusIndex);
3789+
if (tabPane.getTabCount() > 1)
3790+
repaintTab(focusIndex);
37903791
}
37913792

37923793

0 commit comments

Comments
 (0)