<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<!--NewPage-->
<html>
<head>
<!-- Generated by javadoc on Wed Jul 28 01:21:15 GMT 1999 -->
<title>
  Class java.awt.Window
</title>
</head>
<body>
<a name="_top_"></a>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.awt.html">This Package</a>  <a href="java.awt.Toolkit.html#_top_">Previous</a>  <a href="Package-java.awt.html">Next</a>  <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
  Class java.awt.Window
</h1>
<pre>
<a href="java.lang.Object.html#_top_">java.lang.Object</a>
   |
   +----<a href="java.awt.Component.html#_top_">java.awt.Component</a>
           |
           +----<a href="java.awt.Container.html#_top_">java.awt.Container</a>
                   |
                   +----java.awt.Window
</pre>
<hr>
<dl>
  <dt> public class <b>Window</b>
  <dt> extends <a href="java.awt.Container.html#_top_">Container</a>
</dl>
A <code>Window</code> object 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 <code>BorderLayout</code>.
 A <code>Window</code> object blocks input to other application 
 windows when it is shown.
 <p>
 Windows are capable of generating the following window events:
 WindowOpened, WindowClosed.
<p>
<dl>
    <dt> <b>See Also:</b>
    <dd> <a href="java.awt.event.WindowEvent.html#_top_">WindowEvent</a>, <a href="#addWindowListener">addWindowListener</a>, <a href="java.awt.BorderLayout.html#_top_">BorderLayout</a>
</dl>
<hr>
<a name="index"></a>
<h2>
  <img src="images/constructor-index.gif" width=275 height=38 alt="Constructor Index">
</h2>
<dl>
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#Window(java.awt.Frame)"><b>Window</b></a>(Frame)
  <dd>  Constructs a new invisible window.
</dl>
<h2>
  <img src="images/method-index.gif" width=207 height=38 alt="Method Index">
</h2>
<dl>
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#addNotify()"><b>addNotify</b></a>()
  <dd>  Creates the Window's peer.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#addWindowListener(java.awt.event.WindowListener)"><b>addWindowListener</b></a>(WindowListener)
  <dd>  Adds the specified window listener to receive window events from
 this window.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#dispose()"><b>dispose</b></a>()
  <dd>  Disposes of this window.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getFocusOwner()"><b>getFocusOwner</b></a>()
  <dd>  Returns the child component of this Window which has focus if and 
 only if this Window is active.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getLocale()"><b>getLocale</b></a>()
  <dd> 
 Gets the <code>Locale</code> object that is associated 
 with this window, if the locale has been set.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getToolkit()"><b>getToolkit</b></a>()
  <dd>  Returns the toolkit of this frame.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getWarningString()"><b>getWarningString</b></a>()
  <dd>  Gets the warning string that is displayed with this window.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#isShowing()"><b>isShowing</b></a>()
  <dd>  Checks if this Window is showing on screen.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#pack()"><b>pack</b></a>()
  <dd>  Causes subcomponents of this window to be laid out at their
 preferred size.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#postEvent(java.awt.Event)"><b>postEvent</b></a>(Event)
  <dd>  
<b>Deprecated.</b>
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#processEvent(java.awt.AWTEvent)"><b>processEvent</b></a>(AWTEvent)
  <dd>  Processes events on this window.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#processWindowEvent(java.awt.event.WindowEvent)"><b>processWindowEvent</b></a>(WindowEvent)
  <dd> 
 Processes window events occurring on this window by
 dispatching them to any registered WindowListener objects.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#removeWindowListener(java.awt.event.WindowListener)"><b>removeWindowListener</b></a>(WindowListener)
  <dd>  Removes the specified window listener so that it no longer
 receives window events from this window.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setCursor(java.awt.Cursor)"><b>setCursor</b></a>(Cursor)
  <dd>  Set the cursor image to a predefined cursor.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#show()"><b>show</b></a>()
  <dd>  Shows this window, and brings it to the front.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#toBack()"><b>toBack</b></a>()
  <dd>  Sends this window to the back.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#toFront()"><b>toFront</b></a>()
  <dd>  Brings this window to the front.
</dl>
<a name="constructors"></a>
<h2>
  <img src="images/constructors.gif" width=231 height=38 alt="Constructors">
</h2>
<a name="Window"></a>
<a name="Window(java.awt.Frame)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>Window</b>
<pre>
 public Window(<a href="java.awt.Frame.html#_top_">Frame</a> parent)
</pre>
<dl>
  <dd> Constructs a new invisible window.
 <p>
 The window is not initially visible. Call the <code>show</code> 
 method to cause the window to become visible.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> parent - the main application frame.
    <dt> <b>See Also:</b>
    <dd> <a href="#show">show</a>, <a href="java.awt.Component.html#setSize">setSize</a>
  </dl></dd>
</dl>
<a name="methods"></a>
<h2>
  <img src="images/methods.gif" width=151 height=38 alt="Methods">
</h2>
<a name="addNotify()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="addNotify"><b>addNotify</b></a>
<pre>
 public void addNotify()
</pre>
<dl>
  <dd> Creates the Window's peer.  The peer allows us to modify the
 appearance of the Window without changing its functionality.
<p>
  <dd><dl>
    <dt> <b>Overrides:</b>
    <dd> <a href="java.awt.Container.html#addNotify()">addNotify</a> in class <a href="java.awt.Container.html#_top_">Container</a>
  </dl></dd>
</dl>
<a name="pack()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="pack"><b>pack</b></a>
<pre>
 public void pack()
</pre>
<dl>
  <dd> Causes subcomponents of this window to be laid out at their
 preferred size.
<p>
</dl>
<a name="show()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="show"><b>show</b></a>
<pre>
 public void show()
</pre>
<dl>
  <dd> Shows this window, and brings it to the front.
 <p>
 If this window is not yet visible, <code>show</code> 
 makes it visible. If this window is already visible, 
 then this method brings it to the front.
<p>
  <dd><dl>
    <dt> <b>Overrides:</b>
    <dd> <a href="java.awt.Component.html#show()">show</a> in class <a href="java.awt.Component.html#_top_">Component</a>
    <dt> <b>See Also:</b>
    <dd> <a href="#toFront">toFront</a>, <a href="java.awt.Component.html#setVisible">setVisible</a>
  </dl></dd>
</dl>
<a name="dispose()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="dispose"><b>dispose</b></a>
<pre>
 public void dispose()
</pre>
<dl>
  <dd> Disposes of this window. This method must
 be called to release the resources that
 are used for the window.
<p>
</dl>
<a name="toFront()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="toFront"><b>toFront</b></a>
<pre>
 public void toFront()
</pre>
<dl>
  <dd> Brings this window to the front.
 Places this window at the top of the stacking order and
 shows it in front of any other windows.
<p>
  <dd><dl>
    <dt> <b>See Also:</b>
    <dd> <a href="#toBack">toBack</a>
  </dl></dd>
</dl>
<a name="toBack()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="toBack"><b>toBack</b></a>
<pre>
 public void toBack()
</pre>
<dl>
  <dd> Sends this window to the back.
 Places this window at the bottom of the stacking order and
 makes the corresponding adjustment to other visible windows.
<p>
  <dd><dl>
    <dt> <b>See Also:</b>
    <dd> <a href="#toFront">toFront</a>
  </dl></dd>
</dl>
<a name="getToolkit()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getToolkit"><b>getToolkit</b></a>
<pre>
 public <a href="java.awt.Toolkit.html#_top_">Toolkit</a> getToolkit()
</pre>
<dl>
  <dd> Returns the toolkit of this frame.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> the toolkit of this window.
    <dt> <b>Overrides:</b>
    <dd> <a href="java.awt.Component.html#getToolkit()">getToolkit</a> in class <a href="java.awt.Component.html#_top_">Component</a>
    <dt> <b>See Also:</b>
    <dd> <a href="java.awt.Toolkit.html#_top_">Toolkit</a>, <a href="java.awt.Toolkit.html#getDefaultToolkit()">getDefaultToolkit</a>, <a href="java.awt.Component.html#getToolkit()">getToolkit</a>
  </dl></dd>
</dl>
<a name="getWarningString()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getWarningString"><b>getWarningString</b></a>
<pre>
 public final <a href="java.lang.String.html#_top_">String</a> getWarningString()
</pre>
<dl>
  <dd> Gets the warning string that is displayed with this window. 
 If this window is insecure, the warning string is displayed 
 somewhere in the visible area of the window. A window is 
 insecure if there is a security manager, and the security 
 manager's <code>checkTopLevelWindow</code> method returns 
 <code>false</code> when this window is passed to it as an
 argument.
 <p>
 If the window is secure, then <code>getWarningString</code>
 returns <code>null</code>. If the window is insecure, this
 method checks for the system property 
 <code>awt.appletWarning</code> 
 and returns the string value of that property.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> the warning string for this window.
    <dt> <b>See Also:</b>
    <dd> <a href="java.lang.SecurityManager.html#checkTopLevelWindow(java.lang.Object)">checkTopLevelWindow</a>
  </dl></dd>
</dl>
<a name="getLocale()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getLocale"><b>getLocale</b></a>
<pre>
 public <a href="java.util.Locale.html#_top_">Locale</a> getLocale()
</pre>
<dl>
  <dd> Gets the <code>Locale</code> object that is associated 
 with this window, if the locale has been set.
 If no locale has been set, then the default locale 
 is returned.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> the locale that is set for this window.
    <dt> <b>Overrides:</b>
    <dd> <a href="java.awt.Component.html#getLocale()">getLocale</a> in class <a href="java.awt.Component.html#_top_">Component</a>
    <dt> <b>See Also:</b>
    <dd> <a href="java.util.Locale.html#_top_">Locale</a>
  </dl></dd>
</dl>
<a name="setCursor(java.awt.Cursor)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setCursor"><b>setCursor</b></a>
<pre>
 public synchronized void setCursor(<a href="java.awt.Cursor.html#_top_">Cursor</a> cursor)
</pre>
<dl>
  <dd> Set the cursor image to a predefined cursor.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> <code>cursor</code> - One of the constants defined
            by the <code>Cursor</code> class. If this parameter is null 
            then the cursor for this window will be set to the type 
            Cursor.DEFAULT_CURSOR .
    <dt> <b>Overrides:</b>
    <dd> <a href="java.awt.Container.html#setCursor(java.awt.Cursor)">setCursor</a> in class <a href="java.awt.Container.html#_top_">Container</a>
    <dt> <b>See Also:</b>
    <dd> <a href="java.awt.Component.html#getCursor">getCursor</a>, <a href="java.awt.Cursor.html#_top_">Cursor</a>
  </dl></dd>
</dl>
<a name="addWindowListener(java.awt.event.WindowListener)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="addWindowListener"><b>addWindowListener</b></a>
<pre>
 public synchronized void addWindowListener(<a href="java.awt.event.WindowListener.html#_top_">WindowListener</a> l)
</pre>
<dl>
  <dd> Adds the specified window listener to receive window events from
 this window.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> l - the window listener
  </dl></dd>
</dl>
<a name="removeWindowListener(java.awt.event.WindowListener)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="removeWindowListener"><b>removeWindowListener</b></a>
<pre>
 public synchronized void removeWindowListener(<a href="java.awt.event.WindowListener.html#_top_">WindowListener</a> l)
</pre>
<dl>
  <dd> Removes the specified window listener so that it no longer
 receives window events from this window.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> l - the window listener
  </dl></dd>
</dl>
<a name="processEvent(java.awt.AWTEvent)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="processEvent"><b>processEvent</b></a>
<pre>
 protected void processEvent(<a href="java.awt.AWTEvent.html#_top_">AWTEvent</a> e)
</pre>
<dl>
  <dd> Processes events on this window. If the event is an WindowEvent,
 it invokes the processWindowEvent method, else it invokes its
 superclass's processEvent.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> e - the event
    <dt> <b>Overrides:</b>
    <dd> <a href="java.awt.Container.html#processEvent(java.awt.AWTEvent)">processEvent</a> in class <a href="java.awt.Container.html#_top_">Container</a>
  </dl></dd>
</dl>
<a name="processWindowEvent(java.awt.event.WindowEvent)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="processWindowEvent"><b>processWindowEvent</b></a>
<pre>
 protected void processWindowEvent(<a href="java.awt.event.WindowEvent.html#_top_">WindowEvent</a> e)
</pre>
<dl>
  <dd> Processes window events occurring on this window by
 dispatching them to any registered WindowListener objects.
 NOTE: This method will not be called unless window events
 are enabled for this component; this happens when one of the
 following occurs:
 a) A WindowListener object is registered via addWindowListener()
 b) Window events are enabled via enableEvents()
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> e - the window event
    <dt> <b>See Also:</b>
    <dd> <a href="java.awt.Component.html#enableEvents">enableEvents</a>
  </dl></dd>
</dl>
<a name="getFocusOwner()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getFocusOwner"><b>getFocusOwner</b></a>
<pre>
 public <a href="java.awt.Component.html#_top_">Component</a> getFocusOwner()
</pre>
<dl>
  <dd> Returns the child component of this Window which has focus if and 
 only if this Window is active.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> the component with focus, or null if no children have focus
 assigned to them.
  </dl></dd>
</dl>
<a name="postEvent(java.awt.Event)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="postEvent"><b>postEvent</b></a>
<pre>
 public boolean postEvent(<a href="java.awt.Event.html#_top_">Event</a> e)
</pre>
<dl>
<dd><b> Note: postEvent() is deprecated.</b>
<i>As of JDK version 1.1
 replaced by <code>dispatchEvent(AWTEvent)</code>.</i>
<p>
  <dd><dl>
    <dt> <b>Overrides:</b>
    <dd> <a href="java.awt.Component.html#postEvent(java.awt.Event)">postEvent</a> in class <a href="java.awt.Component.html#_top_">Component</a>
  </dl></dd>
</dl>
<a name="isShowing()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="isShowing"><b>isShowing</b></a>
<pre>
 public boolean isShowing()
</pre>
<dl>
  <dd> Checks if this Window is showing on screen.
<p>
  <dd><dl>
    <dt> <b>Overrides:</b>
    <dd> <a href="java.awt.Component.html#isShowing()">isShowing</a> in class <a href="java.awt.Component.html#_top_">Component</a>
    <dt> <b>See Also:</b>
    <dd> <a href="java.awt.Component.html#setVisible(boolean)">setVisible</a>
  </dl></dd>
</dl>
<hr>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.awt.html">This Package</a>  <a href="java.awt.Toolkit.html#_top_">Previous</a>  <a href="Package-java.awt.html">Next</a>  <a href="AllNames.html">Index</a></pre>
</body>
</html>
