com.ibm.as400.opnav
Class OpNavMessageBoxDialog

java.lang.Object
  |
  +--com.ibm.as400.opnav.OpNavMessageBoxDialog

public class OpNavMessageBoxDialog
extends java.lang.Object

A utility class used to display message boxes for OpsNav specific dialogs.

Since:
v5r1m0
See Also:
MessageBoxDialog, JOptionPane

Method Summary
static java.lang.Object showMessageDialog(java.lang.String msg)
          Displays a warning message dialog with an OK button.
static java.lang.Object showMessageDialog(java.lang.String msg, int type)
          Displays a message dialog with an OK button.
static java.lang.Object showMessageDialog(java.lang.String msg, int type, java.lang.Object[] options, java.lang.Object initial)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

showMessageDialog

public static java.lang.Object showMessageDialog(java.lang.String msg)
Displays a warning message dialog with an OK button.
Parameters:
msg - Localized message to display.
Returns:
the option selected or null if the dialog was closed
Since:
v5r1m0

showMessageDialog

public static java.lang.Object showMessageDialog(java.lang.String msg,
                                                 int type)
Displays a message dialog with an OK button.
Parameters:
msg - Localized message to display.
type - the type of message that is to be displayed: JOptionPane.ERROR_MESSAGE, JOptionPane.INFORMATION_MESSAGE, JOptionPane.WARNING_MESSAGE, JOptionPane.QUESTION_MESSAGE, or JOptionPane.PLAIN_MESSAGE.
Returns:
the option selected or null if the dialog was closed
Since:
v5r1m0

showMessageDialog

public static java.lang.Object showMessageDialog(java.lang.String msg,
                                                 int type,
                                                 java.lang.Object[] options,
                                                 java.lang.Object initial)