public class MessageBox
extends java.lang.Object
Title: General CWMS Project
Description:
Copyright: Copyright (c) 2000
Company: RMA
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
showConfirm(java.lang.String msg,
java.lang.String title,
int type) |
static void |
showError(java.lang.String msg,
java.lang.String title)
show an Error dialog to the user
|
static void |
showInformation(java.lang.String msg,
java.lang.String title)
show an Informational dialog to the user
|
static void |
showMessageBox(java.lang.String msg,
java.lang.String title,
int type)
display a modal dialog to the user
|
static java.lang.String |
showOkCancel(java.lang.String msg,
java.lang.String title)
display an Ok/Cancel modal dialog to the user
|
static void |
showPlain(java.lang.String msg,
java.lang.String title)
show a Plain dialog to the user
|
static void |
showWarning(java.lang.String msg,
java.lang.String title)
show a Warning dialog to the user
|
static java.lang.String |
showYesNo(java.lang.String msg,
java.lang.String title)
display a Yes/No modal dialog to the user
|
static java.lang.String |
showYesNoCancel(java.lang.String msg,
java.lang.String title)
display a Yes/No/Cancel modal dialog to the user
|
public static void showError(java.lang.String msg,
java.lang.String title)
msg - the message for the dialogtitle - the title for the dialogpublic static void showWarning(java.lang.String msg,
java.lang.String title)
msg - the message for the dialogtitle - the title for the dialogpublic static void showInformation(java.lang.String msg,
java.lang.String title)
msg - the message for the dialogtitle - the title for the dialogpublic static void showPlain(java.lang.String msg,
java.lang.String title)
msg - the message for the dialogtitle - the title for the dialogpublic static void showMessageBox(java.lang.String msg,
java.lang.String title,
int type)
msg - the message for the dialogtitle - the title for the dialogtype - the dialog type.JOptionPane@showMessageDialog()public static java.lang.String showOkCancel(java.lang.String msg,
java.lang.String title)
msg - the message for the dialogtitle - the title for the dialog"ok", "cancel",
or "closed"public static java.lang.String showYesNo(java.lang.String msg,
java.lang.String title)
msg - the message for the dialogtitle - the title for the dialog"yes", "no",
or "closed"public static java.lang.String showYesNoCancel(java.lang.String msg,
java.lang.String title)
msg - the message for the dialogtitle - the title for the dialog"yes", "no",
"cancel" or "closed"public static java.lang.String showConfirm(java.lang.String msg,
java.lang.String title,
int type)