edu.jhu.tmaj.util.swing
Class DialogUtil

java.lang.Object
  extended by edu.jhu.tmaj.util.swing.DialogUtil

public final class DialogUtil
extends java.lang.Object

This class contains methods that display information, warning, and error messages on the client side


Method Summary
static java.awt.Dialog getDialogForComponent(java.awt.Component parentComponent)
           
static void showError(java.lang.String message, java.awt.Component component)
          Displays an error message
static void showException(java.lang.Throwable e, java.lang.String message, java.awt.Component component)
           
static void showInformation(java.lang.String message, java.awt.Component component)
          Displays an information message
static void showWarning(java.lang.String message, java.awt.Component component)
          Displays a warning message
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

showInformation

public static void showInformation(java.lang.String message,
                                   java.awt.Component component)
Displays an information message


showWarning

public static void showWarning(java.lang.String message,
                               java.awt.Component component)
Displays a warning message


showError

public static void showError(java.lang.String message,
                             java.awt.Component component)
Displays an error message


showException

public static void showException(java.lang.Throwable e,
                                 java.lang.String message,
                                 java.awt.Component component)

getDialogForComponent

public static java.awt.Dialog getDialogForComponent(java.awt.Component parentComponent)