Java javax.swing JWindow fields, constructors, methods, implement or subclass

Example usage for Java javax.swing JWindow fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.swing JWindow.

The text is from its open source code.

Subclass

javax.swing.JWindow has subclasses.
Click this link to see all its subclasses.

Constructor

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.

Method

Componentadd(String name, Component comp)
Adds the specified component to this container.
Componentadd(Component comp)
Appends the specified component to the end of this container.
voidaddMouseListener(MouseListener l)
Adds the specified mouse listener to receive mouse events from this component.
voidaddMouseMotionListener(MouseMotionListener l)
Adds the specified mouse motion listener to receive mouse motion events from this component.
voiddispose()
Releases all of the native screen resources used by this Window , its subcomponents, and all of its owned children.
ContainergetContentPane()
Returns the Container which is the contentPane for this window.
intgetHeight()
Returns the current height of this component.
JRootPanegetRootPane()
Returns the rootPane object for this window.
intgetWidth()
Returns the current width of this component.
voidpack()
Causes this Window to be sized to fit the preferred size and layouts of its subcomponents.
voidsetAlwaysOnTop(boolean alwaysOnTop)
Sets whether this window should always be above other windows.
voidsetBackground(Color bgColor)
Sets the background color of this window.
voidsetBounds(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 .

voidsetContentPane(Container contentPane)
Sets the contentPane property for this window.
voidsetLayout(LayoutManager manager)
Sets the LayoutManager.
voidsetLocation(int x, int y)

The method changes the geometry-related data.

voidsetLocation(Point p)

The method changes the geometry-related data.

voidsetLocationRelativeTo(Component c)
Sets the location of the window relative to the specified component according to the following scenarios.
voidsetSize(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 .

voidsetVisible(boolean b)
Shows or hides this Window depending on the value of parameter b .