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.
1 parent e3c90f8 commit 9f7ae09Copy full SHA for 9f7ae09
sources/net.sf.j2s.java.core/src/swingjs/plaf/JSComponentUI.java
@@ -3141,7 +3141,8 @@ public void setZ(int z) {
3141
* @param c
3142
*/
3143
public static void containerToFront(JComponent c) {
3144
- Component w = c.getRootPane().getParent();
+ Component root = c.getRootPane();
3145
+ Component w = (root == null ? null : root.getParent());
3146
if (w instanceof Window)
3147
((Window) w).toFront();
3148
}
0 commit comments