<!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.Dialog
</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.Cursor.html#_top_">Previous</a>  <a href="java.awt.Dimension.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
  Class java.awt.Dialog
</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.Dialog
</pre>
<hr>
<dl>
  <dt> public class <b>Dialog</b>
  <dt> extends <a href="java.awt.Window.html#_top_">Window</a>
</dl>
A class that produces a dialog - a window that takes input from the user.
 The default layout for a dialog is BorderLayout.
 <p>
 Dialogs are capable of generating the following window events:
 WindowOpened, WindowClosing, WindowClosed, 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/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="#Dialog(java.awt.Frame)"><b>Dialog</b></a>(Frame)
  <dd>  Constructs an initially invisible Dialog with an empty title.
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#Dialog(java.awt.Frame, boolean)"><b>Dialog</b></a>(Frame, boolean)
  <dd>  Constructs an initially invisible Dialog with an empty title.
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#Dialog(java.awt.Frame, java.lang.String)"><b>Dialog</b></a>(Frame, String)
  <dd>  Constructs an initially invisible Dialog with a title.
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#Dialog(java.awt.Frame, java.lang.String, boolean)"><b>Dialog</b></a>(Frame, String, boolean)
  <dd>  Constructs an initially invisible Dialog with a 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 dialog's peer.
  <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 dialog.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#isModal()"><b>isModal</b></a>()
  <dd>  Indicates whether the dialog is modal.
  <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 dialog window 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 representing the state of this 
 dialog window.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setModal(boolean)"><b>setModal</b></a>(boolean)
  <dd>  Specifies whether this dialog is modal.
  <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.
  <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 of the Dialog.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#show()"><b>show</b></a>()
  <dd>  Shows the dialog.
</dl>
<a name="constructors"></a>
<h2>
  <img src="images/constructors.gif" width=231 height=38 alt="Constructors">
</h2>
<a name="Dialog"></a>
<a name="Dialog(java.awt.Frame)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>Dialog</b>
<pre>
 public Dialog(<a href="java.awt.Frame.html#_top_">Frame</a> parent)
</pre>
<dl>
  <dd> Constructs an initially invisible Dialog with an empty title.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> parent - the owner of the dialog
    <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="Dialog(java.awt.Frame, boolean)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>Dialog</b>
<pre>
 public Dialog(<a href="java.awt.Frame.html#_top_">Frame</a> parent,
               boolean modal)
</pre>
<dl>
  <dd> Constructs an initially invisible Dialog with an empty title.
 A modal Dialog grabs all the input to the parent frame from the user.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> parent - the owner of the dialog
    <dd> modal - if true, dialog blocks input to the parent window when shown
  </dl></dd>
</dl>
<a name="Dialog(java.awt.Frame, java.lang.String)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>Dialog</b>
<pre>
 public Dialog(<a href="java.awt.Frame.html#_top_">Frame</a> parent,
               <a href="java.lang.String.html#_top_">String</a> title)
</pre>
<dl>
  <dd> Constructs an initially invisible Dialog with a title.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> parent - the owner of the dialog
    <dd> title - the title of the dialog
    <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="Dialog(java.awt.Frame, java.lang.String, boolean)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>Dialog</b>
<pre>
 public Dialog(<a href="java.awt.Frame.html#_top_">Frame</a> parent,
               <a href="java.lang.String.html#_top_">String</a> title,
               boolean modal)
</pre>
<dl>
  <dd> Constructs an initially invisible Dialog with a title. 
 A modal Dialog grabs all the input to the parent frame from the user.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> parent - the owner of the dialog
    <dd> title - the title of the dialog
    <dd> modal - if true, dialog blocks input to the parent window when shown
    <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 dialog's peer.  The peer allows us to change the appearance
 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="isModal()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="isModal"><b>isModal</b></a>
<pre>
 public boolean isModal()
</pre>
<dl>
  <dd> Indicates whether the dialog is modal.  
 A modal dialog grabs all input from the user.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> <code>true</code> if this dialog window is modal;
            <code>false</code> otherwise.
    <dt> <b>See Also:</b>
    <dd> <a href="#setModal">setModal</a>
  </dl></dd>
</dl>
<a name="setModal(boolean)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setModal"><b>setModal</b></a>
<pre>
 public void setModal(boolean b)
</pre>
<dl>
  <dd> Specifies whether this dialog is modal.  A modal
 Dialog grabs all the input to the parent frame from the user.
<p>
  <dd><dl>
    <dt> <b>See Also:</b>
    <dd> <a href="#isModal">isModal</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 dialog.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> the title of this dialog window.
    <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 of the Dialog.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> title - the new title being given to the dialog
    <dt> <b>See Also:</b>
    <dd> <a href="#getTitle">getTitle</a>
  </dl></dd>
</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 the dialog. This will bring the dialog to the
 front if the dialog is already visible.  If the dialog is
 modal, this call will block input to the parent window
 until the dialog is taken down
 by calling hide or dispose. It is permissible to show modal
 dialogs from the event dispatching thread because the toolkit
 will ensure that another dispatching thread will run while
 the one which invoked show is blocked.
<p>
  <dd><dl>
    <dt> <b>Overrides:</b>
    <dd> <a href="java.awt.Window.html#show()">show</a> in class <a href="java.awt.Window.html#_top_">Window</a>
    <dt> <b>See Also:</b>
    <dd> <a href="java.awt.Component.html#hide">hide</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 dialog window is resizable.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> <code>true</code> if the user can resize the dialog;
            <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.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> resizable - <code>true</code> if the user can
                 resize this dialog; <code>false</code> otherwise.
    <dt> <b>See Also:</b>
    <dd> <a href="#isResizable">isResizable</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 representing the state of this 
 dialog window. This string is useful for debugging.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> the parameter string of this dialog window.
    <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>
<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.Cursor.html#_top_">Previous</a>  <a href="java.awt.Dimension.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
</body>
</html>
