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.


Variable Index

 o CANCEL
 o CANCEL_COMMAND
 o NO
 o NO_COMMAND
 o NONE
 o OK
 o OK_CANCEL
 o OK_COMMAND
 o YES
 o YES_COMMAND
 o YES_NO

Constructor Index

 o MessageDialog(Frame, String, String, int, BaseTranslator)

Method Index

 o actionPerformed(ActionEvent)
 o dispose()
Disposes of this window.
 o getResult()
 o messageBox(Frame, String, String, int, BaseTranslator)
Displays a multilingual message box.
 o messageBox(String, String)
Displays a multilingual message box with OK button.

Variables

 o NONE
 public static final int NONE
 o OK
 public static final int OK
 o OK_COMMAND
 public static final String OK_COMMAND
 o CANCEL
 public static final int CANCEL
 o CANCEL_COMMAND
 public static final String CANCEL_COMMAND
 o YES
 public static final int YES
 o YES_COMMAND
 public static final String YES_COMMAND
 o NO
 public static final int NO
 o NO_COMMAND
 public static final String NO_COMMAND
 o OK_CANCEL
 public static final int OK_CANCEL
 o YES_NO
 public static final int YES_NO

Constructors

 o MessageDialog
 public MessageDialog(Frame parent,
                      String title,
                      String msg,
                      int buttonSet,
                      BaseTranslator translator)

Methods

 o dispose
 public void dispose()
Disposes of this window.

Overrides:
dispose in class Window
 o getResult
 public int getResult()
 o actionPerformed
 public void actionPerformed(ActionEvent e)
 o 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.
 o 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