Skip to content

Commit 1f19ffe

Browse files
committed
removing simple buttons from self-painting when border is set
1 parent 7cc1cce commit 1f19ffe

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1392,7 +1392,9 @@ protected void propertyChangedCUI(PropertyChangeEvent e, String prop) {
13921392
setTainted();
13931393
return;
13941394
case "border":
1395-
jc.秘setPaintsSelf(JSComponent.PAINTS_SELF_UNKNOWN);
1395+
// Simple Buttons have insets that don't overlap with the border.
1396+
if (!isSimpleButton)
1397+
jc.秘setPaintsSelf(JSComponent.PAINTS_SELF_UNKNOWN);
13961398
setTainted();
13971399
return;
13981400
case "preferredSize":

0 commit comments

Comments
 (0)