Class powersoft.jcm.ui.MessageBox
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class powersoft.jcm.ui.MessageBox

java.lang.Object
   |
   +----powersoft.jcm.ui.MessageBox

public class MessageBox
extends Object
The MessageBox class

Constructor Index

 o MessageBox()

Method Index

 o info(String, String)
Displays a message box of a preset style containing a text.
 o message(byte, String, String)
Displays a message box.
 o message(String[], String, String)
Displays a message box with user-defined buttons.

Constructors

 o MessageBox
  public MessageBox()

Methods

 o message
  public static byte message(byte style,
                             String caption,
                             String text)
Displays a message box. @param caption the caption of the message box; if null, "Error" will be used @param text the error message to be displayed in the message box @param style one of the constants in MessageBoxStyle @return the button pressed. One of the constants in MessageBoxReturn.
 o message
  public static byte message(String buttons[],
                             String caption,
                             String text)
Displays a message box with user-defined buttons. @param buttons an array of the names of the buttons @param caption the caption of the message box; if null, "Error" will be used @param text the error message to be displayed in the message box @return the index of the button in 'buttons' pressed
 o info
  public static byte info(String caption,
                          String text)
Displays a message box of a preset style containing a text. = message( MessageBoxStyle.Ok, caption, text )

All Packages  Class Hierarchy  This Package  Previous  Next  Index