|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
javax.swing.JWindow
public class JWindow
Unlike JComponent derivatives, JWindow inherits from java.awt.Window. But also lets a look-and-feel component to its work.
| Nested Class Summary | |
|---|---|
protected class |
JWindow.AccessibleJWindow
Provides accessibility support for JWindow. |
| Nested classes/interfaces inherited from class java.awt.Window |
|---|
Window.AccessibleAWTWindow |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected AccessibleContext |
accessibleContext
|
protected JRootPane |
rootPane
|
protected boolean |
rootPaneCheckingEnabled
|
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
JWindow()
Creates a new JWindow that has a shared invisible owner frame
as its parent. |
|
JWindow(Frame owner)
Creates a new JWindow that has the specified
owner frame. |
|
JWindow(GraphicsConfiguration gc)
Creates a new JWindow that uses the specified graphics
environment. |
|
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 void |
addImpl(Component comp,
Object constraints,
int index)
This method is called by all the add() methods to perform
the actual adding of the component. |
protected JRootPane |
createRootPane()
|
AccessibleContext |
getAccessibleContext()
Gets the AccessibleContext associated with this Window. |
Container |
getContentPane()
getContentPane |
Component |
getGlassPane()
getGlassPane |
JLayeredPane |
getLayeredPane()
getLayeredPane |
Dimension |
getPreferredSize()
Returns the preferred size of this container. |
JRootPane |
getRootPane()
getRootPane |
protected boolean |
isRootPaneCheckingEnabled()
|
protected String |
paramString()
Returns a string representing the state of this container for debugging purposes. |
protected void |
processKeyEvent(KeyEvent e)
Called when a key event is dispatched and component events are enabled. |
void |
remove(Component comp)
Removes the specified component from this container. |
void |
setContentPane(Container contentPane)
setContentPane |
void |
setGlassPane(Component glassPane)
setGlassPane |
void |
setLayeredPane(JLayeredPane layeredPane)
setLayeredPane |
void |
setLayout(LayoutManager manager)
Sets the layout manager for this container to the specified layout manager. |
protected void |
setRootPane(JRootPane root)
|
protected void |
setRootPaneCheckingEnabled(boolean enabled)
|
void |
update(Graphics g)
Updates this container. |
protected void |
windowInit()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected JRootPane rootPane
protected boolean rootPaneCheckingEnabled
protected AccessibleContext accessibleContext
| Constructor Detail |
|---|
public JWindow()
JWindow that has a shared invisible owner frame
as its parent.
public JWindow(GraphicsConfiguration gc)
JWindow that uses the specified graphics
environment. This can be used to open a window on a different screen for
example.
gc - the graphics environment to usepublic JWindow(Frame owner)
JWindow that has the specified
owner frame. If owner is null, then
an invisible shared owner frame is installed as owner frame.
owner - the owner frame of this window; if null a shared
invisible owner frame is usedpublic JWindow(Window owner)
JWindow that has the specified
owner window. If owner is null,
then an invisible shared owner frame is installed as owner frame.
owner - the owner window of this window; if null a
shared invisible owner frame is used
public JWindow(Window owner,
GraphicsConfiguration gc)
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.
owner - the owner window of this window; if null a
shared invisible owner frame is usedgc - the graphics configuration to use| Method Detail |
|---|
protected void windowInit()
public Dimension getPreferredSize()
Container
getPreferredSize in class ContainerComponent.getMinimumSize(),
Component.setPreferredSize(Dimension),
LayoutManagerpublic void setLayout(LayoutManager manager)
Container
setLayout in class Containermanager - The new layout manager for this container.public void setLayeredPane(JLayeredPane layeredPane)
RootPaneContainer
setLayeredPane in interface RootPaneContainerlayeredPane - TODOpublic JLayeredPane getLayeredPane()
RootPaneContainer
getLayeredPane in interface RootPaneContainerpublic JRootPane getRootPane()
RootPaneContainer
getRootPane in interface RootPaneContainerprotected void setRootPane(JRootPane root)
protected JRootPane createRootPane()
public Container getContentPane()
RootPaneContainer
getContentPane in interface RootPaneContainerpublic void setContentPane(Container contentPane)
RootPaneContainer
setContentPane in interface RootPaneContainercontentPane - TODOpublic Component getGlassPane()
RootPaneContainer
getGlassPane in interface RootPaneContainerpublic void setGlassPane(Component glassPane)
RootPaneContainer
setGlassPane in interface RootPaneContainerglassPane - TODO
protected void addImpl(Component comp,
Object constraints,
int index)
Containeradd() methods to perform
the actual adding of the component. Subclasses who wish to perform
their own processing when a component is added should override this
method. Any subclass doing this must call the superclass version of
this method in order to ensure proper functioning of the container.
addImpl in class Containercomp - The component to be added.constraints - The layout constraints for this component, or
null if there are no constraints.index - The index in the component list to insert this child
at, or -1 to add at the end of the list.public void remove(Component comp)
Container
remove in class Containercomp - The component to remove from this container.protected boolean isRootPaneCheckingEnabled()
protected void setRootPaneCheckingEnabled(boolean enabled)
public void update(Graphics g)
Container
update in class Containerg - The graphics context for this update.Component.paint(Graphics),
Component.repaint()protected void processKeyEvent(KeyEvent e)
Component
processKeyEvent in class Componente - the KeyEvent to processKeyListener,
Component.addKeyListener(KeyListener),
Component.enableEvents(long)public AccessibleContext getAccessibleContext()
WindowWindow.
The context is created, if necessary.
getAccessibleContext in interface AccessiblegetAccessibleContext in class Windowprotected String paramString()
Container
paramString in class Container
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||