<!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.Frame
</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.FontMetrics.html#_top_">Previous</a>  <a href="java.awt.Graphics.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
  Class java.awt.Frame
</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>
                   |
                   +----<a href="java.awt.Window.html#_top_">java.awt.Window</a>
                           |
                           +----java.awt.Frame
</pre>
<hr>
<dl>
  <dt> public class <b>Frame</b>
  <dt> extends <a href="java.awt.Window.html#_top_">Window</a>
  <dt> implements <a href="java.awt.MenuContainer.html#_top_">MenuContainer</a>
</dl>
A Frame is a top-level window with a title and a border.
 The default layout for a frame is BorderLayout.
 Frames are capable of generating the following types of window events:
 WindowOpened, WindowClosing, WindowClosed, WindowIconified,
 WindowDeiconified, WindowActivated, WindowDeactivated.
<p>
<dl>
    <dt> <b>See Also:</b>
    <dd> <a href="java.awt.event.WindowEvent.html#_top_">WindowEvent</a>, <a href="java.awt.Window.html#addWindowListener">addWindowListener</a>
</dl>
<hr>
<a name="index"></a>
<h2>
  <img src="images/variable-index.gif" width=207 height=38 alt="Variable Index">
</h2>
<dl>
  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#CROSSHAIR_CURSOR"><b>CROSSHAIR_CURSOR</b></a>
  <dd> 

  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#DEFAULT_CURSOR"><b>DEFAULT_CURSOR</b></a>
  <dd> 

  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#E_RESIZE_CURSOR"><b>E_RESIZE_CURSOR</b></a>
  <dd> 

  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#HAND_CURSOR"><b>HAND_CURSOR</b></a>
  <dd> 

  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#MOVE_CURSOR"><b>MOVE_CURSOR</b></a>
  <dd> 

  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#N_RESIZE_CURSOR"><b>N_RESIZE_CURSOR</b></a>
  <dd> 

  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#NE_RESIZE_CURSOR"><b>NE_RESIZE_CURSOR</b></a>
  <dd> 

  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#NW_RESIZE_CURSOR"><b>NW_RESIZE_CURSOR</b></a>
  <dd> 

  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#S_RESIZE_CURSOR"><b>S_RESIZE_CURSOR</b></a>
  <dd> 

  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#SE_RESIZE_CURSOR"><b>SE_RESIZE_CURSOR</b></a>
  <dd> 

  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#SW_RESIZE_CURSOR"><b>SW_RESIZE_CURSOR</b></a>
  <dd> 

  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#TEXT_CURSOR"><b>TEXT_CURSOR</b></a>
  <dd> 

  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#W_RESIZE_CURSOR"><b>W_RESIZE_CURSOR</b></a>
  <dd> 

  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#WAIT_CURSOR"><b>WAIT_CURSOR</b></a>
  <dd> 

</dl>
<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="#Frame()"><b>Frame</b></a>()
  <dd>  Constructs a new instance of <code>Frame</code> that is
 initially invisible.
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#Frame(java.lang.String)"><b>Frame</b></a>(String)
  <dd>  Constructs a new, initially invisible <code>Frame</code> object
 with the specified title.
</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 Frame's peer.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#dispose()"><b>dispose</b></a>()
  <dd>  Disposes of the Frame.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getCursorType()"><b>getCursorType</b></a>()
  <dd>  
<b>Deprecated.</b>
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getIconImage()"><b>getIconImage</b></a>()
  <dd>  Gets the icon image for this frame.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getMenuBar()"><b>getMenuBar</b></a>()
  <dd>  Gets the menu bar for this frame.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getTitle()"><b>getTitle</b></a>()
  <dd>  Gets the title of the frame.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#isResizable()"><b>isResizable</b></a>()
  <dd>  Indicates whether this frame is resizable.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#paramString()"><b>paramString</b></a>()
  <dd>  Returns the parameter String of this Frame.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#remove(java.awt.MenuComponent)"><b>remove</b></a>(MenuComponent)
  <dd>  Removes the specified menu bar from this frame.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setCursor(int)"><b>setCursor</b></a>(int)
  <dd>  
<b>Deprecated.</b>
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setIconImage(java.awt.Image)"><b>setIconImage</b></a>(Image)
  <dd>  Sets the image to display when this frame is iconized.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setMenuBar(java.awt.MenuBar)"><b>setMenuBar</b></a>(MenuBar)
  <dd>  Sets the menu bar for this frame to the specified menu bar.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setResizable(boolean)"><b>setResizable</b></a>(boolean)
  <dd>  Sets the resizable flag, which determines whether
 this frame is resizable.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setTitle(java.lang.String)"><b>setTitle</b></a>(String)
  <dd>  Sets the title for this frame to the specified title.
</dl>
<a name="variables"></a>
<h2>
  <img src="images/variables.gif" width=153 height=38 alt="Variables">
</h2>
<a name="DEFAULT_CURSOR"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>DEFAULT_CURSOR</b>
<pre>
 public static final int DEFAULT_CURSOR
</pre>
<dl>
</dl>
<a name="CROSSHAIR_CURSOR"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>CROSSHAIR_CURSOR</b>
<pre>
 public static final int CROSSHAIR_CURSOR
</pre>
<dl>
</dl>
<a name="TEXT_CURSOR"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>TEXT_CURSOR</b>
<pre>
 public static final int TEXT_CURSOR
</pre>
<dl>
</dl>
<a name="WAIT_CURSOR"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>WAIT_CURSOR</b>
<pre>
 public static final int WAIT_CURSOR
</pre>
<dl>
</dl>
<a name="SW_RESIZE_CURSOR"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>SW_RESIZE_CURSOR</b>
<pre>
 public static final int SW_RESIZE_CURSOR
</pre>
<dl>
</dl>
<a name="SE_RESIZE_CURSOR"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>SE_RESIZE_CURSOR</b>
<pre>
 public static final int SE_RESIZE_CURSOR
</pre>
<dl>
</dl>
<a name="NW_RESIZE_CURSOR"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>NW_RESIZE_CURSOR</b>
<pre>
 public static final int NW_RESIZE_CURSOR
</pre>
<dl>
</dl>
<a name="NE_RESIZE_CURSOR"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>NE_RESIZE_CURSOR</b>
<pre>
 public static final int NE_RESIZE_CURSOR
</pre>
<dl>
</dl>
<a name="N_RESIZE_CURSOR"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>N_RESIZE_CURSOR</b>
<pre>
 public static final int N_RESIZE_CURSOR
</pre>
<dl>
</dl>
<a name="S_RESIZE_CURSOR"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>S_RESIZE_CURSOR</b>
<pre>
 public static final int S_RESIZE_CURSOR
</pre>
<dl>
</dl>
<a name="W_RESIZE_CURSOR"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>W_RESIZE_CURSOR</b>
<pre>
 public static final int W_RESIZE_CURSOR
</pre>
<dl>
</dl>
<a name="E_RESIZE_CURSOR"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>E_RESIZE_CURSOR</b>
<pre>
 public static final int E_RESIZE_CURSOR
</pre>
<dl>
</dl>
<a name="HAND_CURSOR"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>HAND_CURSOR</b>
<pre>
 public static final int HAND_CURSOR
</pre>
<dl>
</dl>
<a name="MOVE_CURSOR"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>MOVE_CURSOR</b>
<pre>
 public static final int MOVE_CURSOR
</pre>
<dl>
</dl>
<a name="constructors"></a>
<h2>
  <img src="images/constructors.gif" width=231 height=38 alt="Constructors">
</h2>
<a name="Frame"></a>
<a name="Frame()"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>Frame</b>
<pre>
 public Frame()
</pre>
<dl>
  <dd> Constructs a new instance of <code>Frame</code> that is
 initially invisible.
<p>
  <dd><dl>
    <dt> <b>See Also:</b>
    <dd> <a href="java.awt.Component.html#setSize">setSize</a>, <a href="java.awt.Component.html#setVisible">setVisible</a>
  </dl></dd>
</dl>
<a name="Frame(java.lang.String)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>Frame</b>
<pre>
 public Frame(<a href="java.lang.String.html#_top_">String</a> title)
</pre>
<dl>
  <dd> Constructs a new, initially invisible <code>Frame</code> object
 with the specified title.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> title - the title for the frame
    <dt> <b>See Also:</b>
    <dd> <a href="java.awt.Component.html#setSize">setSize</a>, <a href="java.awt.Component.html#setVisible">setVisible</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 Frame's peer.  The peer allows us to change the look
 of the Frame without changing its functionality.
<p>
  <dd><dl>
    <dt> <b>Overrides:</b>
    <dd> <a href="java.awt.Window.html#addNotify()">addNotify</a> in class <a href="java.awt.Window.html#_top_">Window</a>
  </dl></dd>
</dl>
<a name="getTitle()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getTitle"><b>getTitle</b></a>
<pre>
 public <a href="java.lang.String.html#_top_">String</a> getTitle()
</pre>
<dl>
  <dd> Gets the title of the frame.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> the title of this frame, or <code>null</code>
                if this frame doesn't have a title.
    <dt> <b>See Also:</b>
    <dd> <a href="#setTitle">setTitle</a>
  </dl></dd>
</dl>
<a name="setTitle(java.lang.String)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setTitle"><b>setTitle</b></a>
<pre>
 public synchronized void setTitle(<a href="java.lang.String.html#_top_">String</a> title)
</pre>
<dl>
  <dd> Sets the title for this frame to the specified title.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> title - the specified title of this frame.
    <dt> <b>See Also:</b>
    <dd> <a href="#getTitle">getTitle</a>
  </dl></dd>
</dl>
<a name="getIconImage()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getIconImage"><b>getIconImage</b></a>
<pre>
 public <a href="java.awt.Image.html#_top_">Image</a> getIconImage()
</pre>
<dl>
  <dd> Gets the icon image for this frame.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> the icon image for this frame, or <code>null</code>
                    if this frame doesn't have an icon image.
    <dt> <b>See Also:</b>
    <dd> <a href="#setIconImage">setIconImage</a>
  </dl></dd>
</dl>
<a name="setIconImage(java.awt.Image)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setIconImage"><b>setIconImage</b></a>
<pre>
 public synchronized void setIconImage(<a href="java.awt.Image.html#_top_">Image</a> image)
</pre>
<dl>
  <dd> Sets the image to display when this frame is iconized.
 Not all platforms support the concept of iconizing a window.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> image - the icon image to be displayed
    <dt> <b>See Also:</b>
    <dd> <a href="#getIconImage">getIconImage</a>
  </dl></dd>
</dl>
<a name="getMenuBar()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getMenuBar"><b>getMenuBar</b></a>
<pre>
 public <a href="java.awt.MenuBar.html#_top_">MenuBar</a> getMenuBar()
</pre>
<dl>
  <dd> Gets the menu bar for this frame.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> the menu bar for this frame, or <code>null</code>
                   if this frame doesn't have a menu bar.
    <dt> <b>See Also:</b>
    <dd> <a href="#setMenuBar">setMenuBar</a>
  </dl></dd>
</dl>
<a name="setMenuBar(java.awt.MenuBar)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setMenuBar"><b>setMenuBar</b></a>
<pre>
 public void setMenuBar(<a href="java.awt.MenuBar.html#_top_">MenuBar</a> mb)
</pre>
<dl>
  <dd> Sets the menu bar for this frame to the specified menu bar.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> mb - the menu bar being set
    <dt> <b>See Also:</b>
    <dd> <a href="#getMenuBar">getMenuBar</a>
  </dl></dd>
</dl>
<a name="isResizable()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="isResizable"><b>isResizable</b></a>
<pre>
 public boolean isResizable()
</pre>
<dl>
  <dd> Indicates whether this frame is resizable.
 By default, all frames are initially resizable.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> <code>true</code> if the user can resize this frame;
                        <code>false</code> otherwise.
    <dt> <b>See Also:</b>
    <dd> <a href="#setResizable">setResizable</a>
  </dl></dd>
</dl>
<a name="setResizable(boolean)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setResizable"><b>setResizable</b></a>
<pre>
 public synchronized void setResizable(boolean resizable)
</pre>
<dl>
  <dd> Sets the resizable flag, which determines whether
 this frame is resizable.
 By default, all frames are initially resizable.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> resizable - <code>true</code> if this frame is resizable;
                       <code>false</code> otherwise.
    <dt> <b>See Also:</b>
    <dd> <a href="#isResizable">isResizable</a>
  </dl></dd>
</dl>
<a name="remove(java.awt.MenuComponent)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="remove"><b>remove</b></a>
<pre>
 public void remove(<a href="java.awt.MenuComponent.html#_top_">MenuComponent</a> m)
</pre>
<dl>
  <dd> Removes the specified menu bar from this frame.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> m - the menu component to remove.
    <dt> <b>Overrides:</b>
    <dd> <a href="java.awt.Component.html#remove(java.awt.MenuComponent)">remove</a> in class <a href="java.awt.Component.html#_top_">Component</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 the Frame. This method must
 be called to release the resources that
 are used for the frame.  All components
 contained by the frame and all windows
 owned by the frame will also be destroyed.
<p>
  <dd><dl>
    <dt> <b>Overrides:</b>
    <dd> <a href="java.awt.Window.html#dispose()">dispose</a> in class <a href="java.awt.Window.html#_top_">Window</a>
  </dl></dd>
</dl>
<a name="paramString()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="paramString"><b>paramString</b></a>
<pre>
 protected <a href="java.lang.String.html#_top_">String</a> paramString()
</pre>
<dl>
  <dd> Returns the parameter String of this Frame.
<p>
  <dd><dl>
    <dt> <b>Overrides:</b>
    <dd> <a href="java.awt.Container.html#paramString()">paramString</a> in class <a href="java.awt.Container.html#_top_">Container</a>
  </dl></dd>
</dl>
<a name="setCursor(int)"><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(int cursorType)
</pre>
<dl>
<dd><b> Note: setCursor() is deprecated.</b>
<i>As of JDK version 1.1,
 replaced by <code>Component.setCursor(Cursor)</code>.</i>
<p>
</dl>
<a name="getCursorType()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getCursorType"><b>getCursorType</b></a>
<pre>
 public int getCursorType()
</pre>
<dl>
<dd><b> Note: getCursorType() is deprecated.</b>
<i>As of JDK version 1.1,
 replaced by <code>Component.getCursor()</code>.</i>
<p>
</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.FontMetrics.html#_top_">Previous</a>  <a href="java.awt.Graphics.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
</body>
</html>
