Window

Name

Window

[Graphic: Figure from the text]

Description

The Window class serves as a top-level display area that exists outside the browser or applet area you may be working in. A window must have a parent Frame.

Class Definition

public class java.awt.Window extends java.awt.Container {
 // Constructors public Window (Frame parent); // Instance Methods public void addNotify();
public synchronized void addWindowListener (WindowListener l); public void dispose();
public Component getFocusOwner(); public Locale getLocale(); public Toolkit getToolkit();
public final String getWarningString();
public boolean isShowing(); public void pack();
public boolean postEvent (Event e); (Deprecated) public synchronized void remove WindowListener (WindowListener l); public void show();
public void toBack();
public void toFront(); //Protected Instance Methods protected void processEvent (AWTEvent e); protected void processWindowEvent (WindowEvent e);
}

Constructors

Window

public Window (Frame parent)

Instance Methods

addNotify

public void addNotify()

removeWindowListener

public synchronized void removeWindowListener(WindowListener l)

addWindowListener

public synchronized void addWindowListener (WindowListener l)

dispose

public void dispose()

getFocusOwner

public Component getFocusOwner()

getLocale

public Locale getLocale()

getToolkit

public Toolkit getToolkit()

getWarningString

public final String getWarningString()

isShowing

public boolean isShowing()

pack

public void pack()

postEvent

public boolean postEvent (Event e) (Deprecated)

removeWindowListener

public synchronized void removeWindowListener (WindowListener l)

show

public void show()

toBack

public void toBack()

toFront

public void toFront()

Protected Instance Methods

processEvent

protected void processEvent (AWTEvent e)

processWindowEvent

protected void processWindowEvent (WindowEvent e)

See Also

Component, Container, Dialog, Frame, String, Toolkit