Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified sources/net.sf.j2s.java.core/SwingJS-site.zip
Binary file not shown.
16 changes: 13 additions & 3 deletions sources/net.sf.j2s.java.core/src/swingjs/plaf/JSComponentUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -649,9 +649,19 @@ public void stateChanged(ChangeEvent e) {
@Override
public void propertyChange(PropertyChangeEvent e) {
String prop = e.getPropertyName();
if (isDisposed && c.visible && prop == "ancestor"
&& e.getNewValue() != null)
setVisible(true);
if (prop == "ancestor") {
JSComponentUI parentui = this;
/**
* @j2sNative
*
* parentui = this.jc.parent && this.jc.parent.getUI &&
* this.jc.parent.getUI();
*/
if (parentui != null)
parentui.setTainted();
if (isDisposed && c.visible && e.getNewValue() != null)
setVisible(true);
}
propertyChangedCUI(prop);
}

Expand Down