We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a33c72e + 0d557c8 commit 110663dCopy full SHA for 110663d
sources/net.sf.j2s.java.core/SwingJS-site.zip
132 Bytes
sources/net.sf.j2s.java.core/src/swingjs/plaf/JSComponentUI.java
@@ -649,9 +649,19 @@ public void stateChanged(ChangeEvent e) {
649
@Override
650
public void propertyChange(PropertyChangeEvent e) {
651
String prop = e.getPropertyName();
652
- if (isDisposed && c.visible && prop == "ancestor"
653
- && e.getNewValue() != null)
654
- setVisible(true);
+ if (prop == "ancestor") {
+ JSComponentUI parentui = this;
+ /**
655
+ * @j2sNative
656
+ *
657
+ * parentui = this.jc.parent && this.jc.parent.getUI &&
658
+ * this.jc.parent.getUI();
659
+ */
660
+ if (parentui != null)
661
+ parentui.setTainted();
662
+ if (isDisposed && c.visible && e.getNewValue() != null)
663
+ setVisible(true);
664
+ }
665
propertyChangedCUI(prop);
666
}
667
0 commit comments