Class gjt.YesNoDialog
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class gjt.YesNoDialog

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Dialog
                                   |
                                   +----gjt.GJTDialog
                                           |
                                           +----gjt.YesNoDialog

public class YesNoDialog
extends GJTDialog
Similar in fuction to the MessageDialog, YesNoDialog poses a question, that is answered by selection of either a Yes button or a No button.

Note that the YesNoDialog is a singleton - meaning there is only one YesNoDialog in existence per applet. Clients may obtain the YesNoDialog by invoking getYesNoDialog().

See Also:
GJTDialog, MessageDialog, DialogTest

Method Index

 o action(Event, Object)
 o answeredYes()
 o getYesNoDialog(Frame, DialogClient, String, String)
 o show()

Methods

 o getYesNoDialog
  public static YesNoDialog getYesNoDialog(Frame frame,
                                           DialogClient client,
                                           String title,
                                           String message)
 o show
  public void show()
Overrides:
show in class GJTDialog
 o answeredYes
  public boolean answeredYes()
 o action
  public boolean action(Event event,
                        Object what)
Overrides:
action in class Component

All Packages  Class Hierarchy  This Package  Previous  Next  Index