All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class datarep.common.MessageBox

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Dialog
                                   |
                                   +----datarep.common.MessageBox

public class MessageBox
extends Dialog
implements ActionListener
MessageBox is a convienence class. It makes displaying a message with any number of buttons very easy.

Version:
1.2
Author:
Data Representations, Inc.

Constructor Index

 o MessageBox(Frame, String, String)
This makes a simple message box with only an "Ok" button.
 o MessageBox(Frame, String, String, String[])
This makes a message box which belongs to the parent frame with the title and message as specified.

Method Index

 o actionPerformed(ActionEvent)
 o main(String[])

Constructors

 o MessageBox
 public MessageBox(Frame parent,
                   String title,
                   String message)
This makes a simple message box with only an "Ok" button. The system will beep when displaying it.

 o MessageBox
 public MessageBox(Frame parent,
                   String title,
                   String message,
                   String buttons[])
This makes a message box which belongs to the parent frame with the title and message as specified. The first item of the string array will be replaced with the name of the button which was pressed. The rest of the string array provides the names of the buttons. The system will beep when displaying the message box. After a button has been pressed, the message box will dissapear.

Methods

 o actionPerformed
 public void actionPerformed(ActionEvent evt)
 o main
 public static void main(String args[])

All Packages  Class Hierarchy  This Package  Previous  Next  Index