Skip to content

Commit 72fce09

Browse files
hansonrhansonr
authored andcommitted
very minor fix
1 parent 65c9c14 commit 72fce09

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,11 @@ public class JSButtonUI extends JSLightweightUI {
8484

8585
@Override
8686
public DOMNode updateDOMNode() {
87-
isSimpleButton = true;
88-
allowPaintedBackground = false;
89-
// all subclasses will have their own version of this.
87+
// all subclasses will have their own version of this. They do not call super.updateDOMNode()
9088
// this one is only for a simple button
9189
if (domNode == null) {
90+
isSimpleButton = true;
91+
allowPaintedBackground = false;
9292
setDoPropagate();
9393
domNode = enableNode = buttonNode = newDOMObject("button", id + "_dom", "type", "button");
9494
//DOMNode.setStyles(domNode,"transform","translateY(0.5px)translateX(0.5px)");

0 commit comments

Comments
 (0)