File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
sources/net.sf.j2s.java.core/src/swingjs/plaf Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 11package swingjs .plaf ;
22
33import java .awt .Color ;
4+ import java .awt .Component ;
45import java .awt .Desktop ;
56import java .awt .Dimension ;
67import java .awt .Insets ;
8+ import java .awt .JSComponent ;
79import java .awt .Rectangle ;
810import java .awt .Toolkit ;
911import java .awt .event .ComponentEvent ;
@@ -185,9 +187,13 @@ public DOMNode updateDOMNode() {
185187
186188 @ Override
187189 protected boolean isFrameIndependent () {
188- if (isInternalFrame && frame .parent != null && frame .parent .getUIClassID () != "DesktopPaneUI" )
190+ JSComponent c = frame .parent ;
191+ if (isInternalFrame && (c == null || c != null
192+ && c .getUIClassID () != "DesktopPaneUI" ))
189193 return false ;
190- return (!isInternalFrame || embeddingNode == null || !doEmbed );
194+ boolean is = (isInternalFrame ? c == null
195+ || c .getWidth () == 0 : !doEmbed );
196+ return is ;
191197 }
192198
193199
You can’t perform that action at this time.
0 commit comments