Example usage for Java javax.swing JWindow fields, constructors, methods, implement or subclass
The text is from its open source code.
JWindow() Creates a window with no specified owner. | |
JWindow(GraphicsConfiguration gc) Creates a window with the specified GraphicsConfiguration of a screen device. | |
JWindow(Frame owner) Creates a window with the specified owner frame. | |
JWindow(Window owner) Creates a window with the specified owner window. |
Component | add(String name, Component comp) Adds the specified component to this container. |
Component | add(Component comp) Appends the specified component to the end of this container. |
void | addMouseListener(MouseListener l) Adds the specified mouse listener to receive mouse events from this component. |
void | addMouseMotionListener(MouseMotionListener l) Adds the specified mouse motion listener to receive mouse motion events from this component. |
void | dispose() Releases all of the native screen resources used by this Window , its subcomponents, and all of its owned children. |
Container | getContentPane() Returns the Container which is the contentPane for this window. |
int | getHeight() Returns the current height of this component. |
JRootPane | getRootPane() Returns the rootPane object for this window. |
int | getWidth() Returns the current width of this component. |
void | pack() Causes this Window to be sized to fit the preferred size and layouts of its subcomponents. |
void | setAlwaysOnTop(boolean alwaysOnTop) Sets whether this window should always be above other windows. |
void | setBackground(Color bgColor) Sets the background color of this window. |
void | setBounds(int x, int y, int width, int height) The width or height values are automatically enlarged if either is less than the minimum size as specified by previous call to setMinimumSize . |
void | setContentPane(Container contentPane) Sets the contentPane property for this window. |
void | setLayout(LayoutManager manager) Sets the LayoutManager . |
void | setLocation(int x, int y) The method changes the geometry-related data. |
void | setLocation(Point p) The method changes the geometry-related data. |
void | setLocationRelativeTo(Component c) Sets the location of the window relative to the specified component according to the following scenarios. |
void | setSize(int width, int height) The width and height values are automatically enlarged if either is less than the minimum size as specified by previous call to setMinimumSize . |
void | setVisible(boolean b) Shows or hides this Window depending on the value of parameter b . |