Class QuitDialog
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Window
|
+----java.awt.Dialog
|
+----QuitDialog
- public class QuitDialog
- extends Dialog
-
noButton
-
-
quitLabel
-
-
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).
-
yesButton
-
-
QuitDialog(Frame, boolean)
-
-
QuitDialog(Frame, String, boolean)
-
-
getResult()
- Return the current value of the result of the Dialog.
-
handleEvent(Event)
-
-
noButton_Clicked(Event)
-
-
show()
-
-
yesButton_Clicked(Event)
-
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).
yesButton
Button yesButton
noButton
Button noButton
quitLabel
Label quitLabel
QuitDialog
public QuitDialog(Frame parent,
boolean modal)
QuitDialog
public QuitDialog(Frame parent,
String title,
boolean modal)
getResult
boolean getResult()
- Return the current value of the result of the Dialog.
yesButton_Clicked
void yesButton_Clicked(Event event)
noButton_Clicked
void noButton_Clicked(Event event)
show
public synchronized void show()
- Overrides:
- show in class Dialog
handleEvent
public boolean handleEvent(Event event)
- Overrides:
- handleEvent in class Component