All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ca.bc.europa.awt.MsgBox

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Frame
                                   |
                                   +----ca.bc.europa.awt.MsgBox

public class MsgBox
extends Frame
MsgBox.java A message box used to display a two line text message to the user.

See Also:
Frame

Variable Index

 o alert

Constructor Index

 o MsgBox()
Create a new message box.

Method Index

 o setAlertIcon(Image, int, int)
Set the image that is displayed on the left of the message box.
 o setBackImage(Image, int, int)
Set the background Image.
 o setMessages(String, String)
Set the text messages displayed in the MsgBox
 o setSpace(int, int)
Set the horizontal and vertical gap for componenet layout
 o show(boolean, String, String)
Show the MsgBox

Variables

 o alert
 public ImageLabel alert

Constructors

 o MsgBox
 public MsgBox()
Create a new message box.

Methods

 o setAlertIcon
 public void setAlertIcon(Image alertIcon,
                          int x,
                          int y)
Set the image that is displayed on the left of the message box.

Parameters:
alertIcon - An image to display on the left side of the MsgBox.
x - The image width
y - The image height
 o setBackImage
 public void setBackImage(Image bgImage,
                          int x,
                          int y)
Set the background Image.

Parameters:
bgImage - The image to display in the background.
x - The image width
y - The image height
 o setSpace
 public void setSpace(int x,
                      int y)
Set the horizontal and vertical gap for componenet layout

Parameters:
x - The horizontal gap in pixels.
y - The vertical gap in pixels.
 o setMessages
 public void setMessages(String top,
                         String bottom)
Set the text messages displayed in the MsgBox

Parameters:
top - The message displayed nearest the top of the frame.
bottom - The message displayed nearest the bottom of the Frame.
 o show
 public void show(boolean close,
                  String top,
                  String bottom)
Show the MsgBox

Parameters:
close - Can the user close the message box?
top - The top text message.
bottom - The bottom text message.

All Packages  Class Hierarchy  This Package  Previous  Next  Index