All Packages Class Hierarchy This Package Previous Next Index
Class multilizer.MessageDialog
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Window
|
+----java.awt.Dialog
|
+----multilizer.MessageDialog
- public class MessageDialog
- extends Dialog
- implements ActionListener
A multilingual message dialog box.
-
CANCEL
-
-
CANCEL_COMMAND
-
-
NO
-
-
NO_COMMAND
-
-
NONE
-
-
OK
-
-
OK_CANCEL
-
-
OK_COMMAND
-
-
YES
-
-
YES_COMMAND
-
-
YES_NO
-
-
MessageDialog(Frame, String, String, int, BaseTranslator)
-
-
actionPerformed(ActionEvent)
-
-
dispose()
- Disposes of this window.
-
getResult()
-
-
messageBox(Frame, String, String, int, BaseTranslator)
- Displays a multilingual message box.
-
messageBox(String, String)
- Displays a multilingual message box with OK button.
NONE
public static final int NONE
OK
public static final int OK
OK_COMMAND
public static final String OK_COMMAND
CANCEL
public static final int CANCEL
CANCEL_COMMAND
public static final String CANCEL_COMMAND
YES
public static final int YES
YES_COMMAND
public static final String YES_COMMAND
NO
public static final int NO
NO_COMMAND
public static final String NO_COMMAND
OK_CANCEL
public static final int OK_CANCEL
YES_NO
public static final int YES_NO
MessageDialog
public MessageDialog(Frame parent,
String title,
String msg,
int buttonSet,
BaseTranslator translator)
dispose
public void dispose()
- Disposes of this window.
- Overrides:
- dispose in class Window
getResult
public int getResult()
actionPerformed
public void actionPerformed(ActionEvent e)
messageBox
public static int messageBox(Frame frame,
String title,
String msg,
int buttonSet,
BaseTranslator translator)
- Displays a multilingual message box.
- Parameters:
- frame - The parent frame for the message box. This can also be null.
- title - The title-bar text of the message box in the native language.
- msg - The message string to display in the message box in the native language.
- buttonSet - Any combination of button codes.
- translator - The translator that is used to translate the message box.
- Returns:
- The code of the button that was pressed.
messageBox
public static void messageBox(String title,
String msg)
- Displays a multilingual message box with OK button.
- Parameters:
- title - The title-bar text of the message box in the native language.
- msg - The message string to display in the message box in the native language.
All Packages Class Hierarchy This Package Previous Next Index