*/
public class JWindow extends Window implements Accessible, RootPaneContainer
{
- public final static int HIDE_ON_CLOSE = 0;
- public final static int EXIT_ON_CLOSE = 1;
- public final static int DISPOSE_ON_CLOSE = 2;
- public final static int DO_NOTHING_ON_CLOSE = 3;
+ private static final long serialVersionUID = 5420698392125238833L;
+
+ public static final int HIDE_ON_CLOSE = 0;
+ public static final int EXIT_ON_CLOSE = 1;
+ public static final int DISPOSE_ON_CLOSE = 2;
+ public static final int DO_NOTHING_ON_CLOSE = 3;
protected AccessibleContext accessibleContext;
public JWindow()
{
- super();
+ super(SwingUtilities.getOwnerFrame());
}
// huuu ?
return d;
}
- JMenuBar getJMenuBar()
- { return getRootPane().getJMenuBar(); }
-
- void setJMenuBar(JMenuBar menubar)
- { getRootPane().setJMenuBar(menubar); }
-
-
public void setLayout(LayoutManager manager)
{ super.setLayout(manager); }