javax.swing

Class JWindow

public class JWindow extends Window implements Accessible, RootPaneContainer

Unlike JComponent derivatives, JWindow inherits from java.awt.Window. But also lets a look-and-feel component to its work.
Nested Class Summary
protected classJWindow.AccessibleJWindow
Provides accessibility support for JWindow.
Field Summary
protected AccessibleContextaccessibleContext
protected JRootPanerootPane
protected booleanrootPaneCheckingEnabled
Constructor Summary
JWindow()
Creates a new JWindow that has a shared invisible owner frame as its parent.
JWindow(GraphicsConfiguration gc)
Creates a new JWindow that uses the specified graphics environment.
JWindow(Frame owner)
Creates a new JWindow that has the specified owner frame.
JWindow(Window owner)
Creates a new JWindow that has the specified owner window.
JWindow(Window owner, GraphicsConfiguration gc)
Creates a new JWindow for the given graphics configuration and that has the specified owner window.
Method Summary
protected voidaddImpl(Component comp, Object constraints, int index)
protected JRootPanecreateRootPane()
AccessibleContextgetAccessibleContext()
ContainergetContentPane()
ComponentgetGlassPane()
JLayeredPanegetLayeredPane()
DimensiongetPreferredSize()
JRootPanegetRootPane()
protected booleanisRootPaneCheckingEnabled()
protected StringparamString()
protected voidprocessKeyEvent(KeyEvent e)
voidremove(Component comp)
voidsetContentPane(Container contentPane)
voidsetGlassPane(Component glassPane)
voidsetLayeredPane(JLayeredPane layeredPane)
voidsetLayout(LayoutManager manager)
protected voidsetRootPane(JRootPane root)
protected voidsetRootPaneCheckingEnabled(boolean enabled)
voidupdate(Graphics g)
protected voidwindowInit()

Field Detail

accessibleContext

protected AccessibleContext accessibleContext

rootPane

protected JRootPane rootPane

rootPaneCheckingEnabled

protected boolean rootPaneCheckingEnabled

UNKNOWN: rootPaneCheckingEnabled is false to comply with J2SE 5.0

Constructor Detail

JWindow

public JWindow()
Creates a new JWindow that has a shared invisible owner frame as its parent.

JWindow

public JWindow(GraphicsConfiguration gc)
Creates a new JWindow that uses the specified graphics environment. This can be used to open a window on a different screen for example.

Parameters: gc the graphics environment to use

JWindow

public JWindow(Frame owner)
Creates a new JWindow that has the specified owner frame. If owner is null, then an invisible shared owner frame is installed as owner frame.

Parameters: owner the owner frame of this window; if null a shared invisible owner frame is used

JWindow

public JWindow(Window owner)
Creates a new JWindow that has the specified owner window. If owner is null, then an invisible shared owner frame is installed as owner frame.

Parameters: owner the owner window of this window; if null a shared invisible owner frame is used

JWindow

public JWindow(Window owner, GraphicsConfiguration gc)
Creates a new JWindow for the given graphics configuration and that has the specified owner window. If owner is null, then an invisible shared owner frame is installed as owner frame. The gc parameter can be used to open the window on a different screen for example.

Parameters: owner the owner window of this window; if null a shared invisible owner frame is used gc the graphics configuration to use

Method Detail

addImpl

protected void addImpl(Component comp, Object constraints, int index)

createRootPane

protected JRootPane createRootPane()

getAccessibleContext

public AccessibleContext getAccessibleContext()

getContentPane

public Container getContentPane()

getGlassPane

public Component getGlassPane()

getLayeredPane

public JLayeredPane getLayeredPane()

getPreferredSize

public Dimension getPreferredSize()

getRootPane

public JRootPane getRootPane()

isRootPaneCheckingEnabled

protected boolean isRootPaneCheckingEnabled()

paramString

protected String paramString()

processKeyEvent

protected void processKeyEvent(KeyEvent e)

remove

public void remove(Component comp)

setContentPane

public void setContentPane(Container contentPane)

setGlassPane

public void setGlassPane(Component glassPane)

setLayeredPane

public void setLayeredPane(JLayeredPane layeredPane)

setLayout

public void setLayout(LayoutManager manager)

setRootPane

protected void setRootPane(JRootPane root)

setRootPaneCheckingEnabled

protected void setRootPaneCheckingEnabled(boolean enabled)

update

public void update(Graphics g)

windowInit

protected void windowInit()