fsmvis.gui
Class DialogBox

java.lang.Object
  |
  +--fsmvis.gui.DialogBox

public class DialogBox
extends java.lang.Object


Constructor Summary
DialogBox()
           
 
Method Summary
static boolean confirmDialog(java.awt.Component parent, java.lang.String msg)
          Asks the user to confirm the message msg and offers them yes or no options.
static void errorMessage(java.awt.Component parent, java.lang.String msg)
          Send a standard Swing error message to the user informing them that msg error has occured
static void informMessage(java.awt.Component parent, java.lang.String msg)
          Send a standard swing message box to the user telling them of msg
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DialogBox

public DialogBox()
Method Detail

informMessage

public static void informMessage(java.awt.Component parent,
                                 java.lang.String msg)
Send a standard swing message box to the user telling them of msg
Parameters:
parent - The parent of this dialog
msg - The message to appear in the dialogue

errorMessage

public static void errorMessage(java.awt.Component parent,
                                java.lang.String msg)
Send a standard Swing error message to the user informing them that msg error has occured
Parameters:
parent - The parent of this dialog
msg - The message to display

confirmDialog

public static boolean confirmDialog(java.awt.Component parent,
                                    java.lang.String msg)
Asks the user to confirm the message msg and offers them yes or no options. The result is returned to the caller.
Parameters:
parent - The parent of this dialog
msg - The message to display
Returns:
The users response