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.WorkDialog
                                                   |
                                                   +----gjt.YesNoDialog

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

YesNoDialog dialog = new YesNoDialog(gjt.Util.getFrame(this), this, // DialogClient (can be null) "Title", // dialog title "want?", // question image, // picture for dialog (can be null) true); // modal dialog.show(); if(dialog.answeredYes()) // ...

See Also:
GJTDialog, MessageDialog, DialogTest

Constructor Index

 o YesNoDialog(Frame, DialogClient, String, String, Image)
 o YesNoDialog(Frame, DialogClient, String, String, Image, boolean)

Method Index

 o answeredYes()
 o doLayout()
 o layout()
Deprecated.
 o setImage(Image)
 o setMessage(String)
 o setNoButtonLabel(String)
 o setYesButtonLabel(String)

Constructors

 o YesNoDialog
 public YesNoDialog(Frame frame,
                    DialogClient client,
                    String title,
                    String question,
                    Image image)
 o YesNoDialog
 public YesNoDialog(Frame frame,
                    DialogClient client,
                    String title,
                    String question,
                    Image image,
                    boolean modal)

Methods

 o layout
 public void layout()
Note: layout() is deprecated. as of JDK1.1

Overrides:
layout in class Container
 o doLayout
 public void doLayout()
Overrides:
doLayout in class Container
 o setYesButtonLabel
 public void setYesButtonLabel(String label)
 o setNoButtonLabel
 public void setNoButtonLabel(String label)
 o answeredYes
 public boolean answeredYes()
 o setMessage
 public void setMessage(String question)
 o setImage
 public void setImage(Image image)

All Packages  Class Hierarchy  This Package  Previous  Next  Index