Class QuitDialog

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

public class QuitDialog
extends Dialog

Variable Index

 o noButton
 o quitLabel
 o result
Variable to hold the result of the Dialog; true if the user used the Yes button, false otherwise (The No button is used, the Dialog gets a WINDOW_DESTROY or no button used yet).
 o yesButton

Constructor Index

 o QuitDialog(Frame, boolean)
 o QuitDialog(Frame, String, boolean)

Method Index

 o getResult()
Return the current value of the result of the Dialog.
 o handleEvent(Event)
 o noButton_Clicked(Event)
 o show()
 o yesButton_Clicked(Event)

Variables

 o result
 private boolean result
Variable to hold the result of the Dialog; true if the user used the Yes button, false otherwise (The No button is used, the Dialog gets a WINDOW_DESTROY or no button used yet).

 o yesButton
 Button yesButton
 o noButton
 Button noButton
 o quitLabel
 Label quitLabel

Constructors

 o QuitDialog
 public QuitDialog(Frame parent,
                   boolean modal)
 o QuitDialog
 public QuitDialog(Frame parent,
                   String title,
                   boolean modal)

Methods

 o getResult
 boolean getResult()
Return the current value of the result of the Dialog.

 o yesButton_Clicked
 void yesButton_Clicked(Event event)
 o noButton_Clicked
 void noButton_Clicked(Event event)
 o show
 public synchronized void show()
Overrides:
show in class Dialog
 o handleEvent
 public boolean handleEvent(Event event)
Overrides:
handleEvent in class Component