/** * Constructs a new window (initially invisible) with the specified owner. If owner is null, the * shared owner will be used * * @param window - owner of the window */ public JWindow(final Window window) { // It seems that this constructor is not equivalent to // JWindow(window, null). // In this constructor GraphicsConfiguration is taken from the owner; // in JWindow(window, null) GraphicsConfiguration is system default. super(window == null ? JFrame.getSharedOwner() : window); windowInit(); }
/** * Constructs a new window (initially invisible) with the specified owner. If owner is null, the * shared owner will be used * * @param frame - owner of the window */ public JWindow(final Frame frame) { super(frame == null ? JFrame.getSharedOwner() : frame); windowInit(); }
/** * Constructs a new window in the specified GraphicsConfiguration with the specified owner. * * @param window - owner of the window * @param gc - the GraphicsConfiguration to construct the frame; if gc is null, the system default * GraphicsConfiguration is assumed */ public JWindow(final Window window, final GraphicsConfiguration gc) { super(window == null ? JFrame.getSharedOwner() : window, gc); windowInit(); }