All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.awt.Window

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window

public class Window
extends Container
A Window is a top-level window with no borders and no menubar. It could be used to implement a pop-up menu. The default layout for a window is BorderLayout.


Constructor Index

 o Window(Frame)
Constructs a new Window initialized to an invisible state.

Method Index

 o addNotify()
Creates the Window's peer.
 o dispose()
Disposes of the Window.
 o getFocusOwner()
Returns the child component of this Window which has focus if and only if this Window is active.
 o getLocale()
Gets the Locale for the window, if it has been set.
 o getToolkit()
Returns the toolkit of this frame.
 o getWarningString()
Gets the warning string for this window.
 o pack()
Packs the components of the Window.
 o postEvent(Event)
DEPRECATED: replace by processEvent Posts an event to this window.
 o show()
Shows the Window.
 o toBack()
Places this window at the bottom of the stacking order and makes the corresponding adjustment to other visible windows.
 o toFront()
Places this window at the top of the stacking order and shows it in front of any other windows.

Constructors

 o Window
  public Window(Frame parent)
Constructs a new Window initialized to an invisible state. It behaves as a modal dialog in that it will block input to other windows when shown.

Parameters:
parent - the owner of the dialog
See Also:
setSize, show

Methods

 o addNotify
  public void addNotify()
Creates the Window's peer. The peer allows us to modify the appearance of the Window without changing its functionality.

Overrides:
addNotify in class Container
 o pack
  public void pack()
Packs the components of the Window.

 o show
  public void show()
Shows the Window. This will bring the window to the front if the window is already visible.

Overrides:
show in class Component
See Also:
hide
 o dispose
  public void dispose()
Disposes of the Window. This method must be called to release the resources that are used for the window.

 o toFront
  public void toFront()
Places this window at the top of the stacking order and shows it in front of any other windows.

 o toBack
  public void toBack()
Places this window at the bottom of the stacking order and makes the corresponding adjustment to other visible windows.

 o getToolkit
  public Toolkit getToolkit()
Returns the toolkit of this frame.

Overrides:
getToolkit in class Component
See Also:
Toolkit
 o getWarningString
  public final String getWarningString()
Gets the warning string for this window. This is a string that will be displayed somewhere in the visible area of windows that are not secure.

 o getLocale
  public Locale getLocale()
Gets the Locale for the window, if it has been set. If no Locale has been set, then the default Locale is returned.

Overrides:
getLocale in class Component
 o getFocusOwner
  public Component getFocusOwner()
Returns the child component of this Window which has focus if and only if this Window is active.

Returns:
the component with focus, or null if no children have focus assigned to them.
 o postEvent
  public boolean postEvent(Event e)
DEPRECATED: replace by processEvent Posts an event to this window. This will result in a call to handleEvent.

Parameters:
e - the event
Overrides:
postEvent in class Component
See Also:
handleEvent, deliverEvent

All Packages  Class Hierarchy  This Package  Previous  Next  Index