All Packages Class Hierarchy This Package Previous Next Index
Class java.awt.Dialog
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Window
|
+----java.awt.Dialog
- public class Dialog
- extends Window
A class that produces a dialog - a window that takes input from the user.
The default layout for a dialog is BorderLayout.
-
windowListener
-
-
Dialog(Frame)
- Constructs an initially invisible Dialog with an empty title.
-
Dialog(Frame, boolean)
- DEPRECATED: Replaced by Dialog(Frame, String, boolean).
-
Dialog(Frame, String)
- Constructs an initially invisible Dialog with a title.
-
Dialog(Frame, String, boolean)
- Constructs an initially invisible Dialog with a title.
-
addNotify()
- Creates the frame's peer.
-
addWindowListener(WindowListener)
- Adds the specified window listener to receive window events from
this dialog.
-
getTitle()
- Gets the title of the Dialog.
-
isModal()
- Returns true if the Dialog is modal.
-
isResizable()
- Returns true if the user can resize the dialog.
-
paramString()
- Returns the parameter String of this Dialog.
-
processEvent(AWTEvent)
- Processes events on this dialog.
-
processWindowEvent(WindowEvent)
-
Processes window events occurring on this dialog by
dispatching them to any registered WindowListener objects.
-
removeWindowListener(WindowListener)
- Removes the specified window listener so that it no longer
receives window events from this dialog.
-
setModal(boolean)
- Specifies whether this Dialog is modal.
-
setResizable(boolean)
- Sets the resizable flag.
-
setTitle(String)
- Sets the title of the Dialog.
-
show()
- Shows the dialog.
windowListener
protected WindowListener windowListener
Dialog
public Dialog(Frame parent)
- Constructs an initially invisible Dialog with an empty title.
- Parameters:
- parent - the owner of the dialog
- See Also:
- setSize, setVisible
Dialog
public Dialog(Frame parent,
boolean modal)
- DEPRECATED: Replaced by Dialog(Frame, String, boolean).
Dialog grabs all the input from the user.
- Parameters:
- parent - the owner of the dialog
- modal - if true, dialog blocks input to other windows when shown
- See Also:
- setSize, setVisible
Dialog
public Dialog(Frame parent,
String title)
- Constructs an initially invisible Dialog with a title.
- Parameters:
- parent - the owner of the dialog
- title - the title of the dialog
- See Also:
- setSize, setVisible
Dialog
public Dialog(Frame parent,
String title,
boolean modal)
- Constructs an initially invisible Dialog with a title.
A modal Dialog grabs all the input from the user.
- Parameters:
- parent - the owner of the dialog
- title - the title of the dialog
- modal - if true, dialog blocks input to other windows when shown
- See Also:
- setSize, setVisible
addNotify
public void addNotify()
- Creates the frame's peer. The peer allows us to change the appearance
of the frame without changing its functionality.
- Overrides:
- addNotify in class Window
isModal
public boolean isModal()
- Returns true if the Dialog is modal. A modal
Dialog grabs all the input from the user.
setModal
public void setModal(boolean b)
- Specifies whether this Dialog is modal. A modal
Dialog grabs all the input from the user.
getTitle
public String getTitle()
- Gets the title of the Dialog.
- See Also:
- setTitle
setTitle
public synchronized void setTitle(String title)
- Sets the title of the Dialog.
- Parameters:
- title - the new title being given to the Dialog
- See Also:
- getTitle
show
public void show()
- Shows the dialog. This will bring the dialog to the
front if the dialog is already visible.
- Overrides:
- show in class Window
- See Also:
- hide
isResizable
public boolean isResizable()
- Returns true if the user can resize the dialog.
setResizable
public synchronized void setResizable(boolean resizable)
- Sets the resizable flag.
- Parameters:
- resizable - true if resizable; false otherwise
addWindowListener
public synchronized void addWindowListener(WindowListener l)
- Adds the specified window listener to receive window events from
this dialog.
- Parameters:
- l - the window listener
removeWindowListener
public synchronized void removeWindowListener(WindowListener l)
- Removes the specified window listener so that it no longer
receives window events from this dialog.
- Parameters:
- l - the window listener
processEvent
protected void processEvent(AWTEvent e)
- Processes events on this dialog. If the event is an WindowEvent,
it invokes the processWindowEvent method, else it invokes its
superclass's processEvent.
- Parameters:
- e - the event
- Overrides:
- processEvent in class Component
processWindowEvent
protected void processWindowEvent(WindowEvent e)
- Processes window events occurring on this dialog 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()
- Parameters:
- e - the window event
- See Also:
- enableEvents
paramString
protected String paramString()
- Returns the parameter String of this Dialog.
- Overrides:
- paramString in class Container
All Packages Class Hierarchy This Package Previous Next Index