gui
Class JAPAWTMsgBox

java.lang.Object
  extended by java.awt.event.WindowAdapter
      extended by gui.JAPAWTMsgBox
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.WindowFocusListener, java.awt.event.WindowListener, java.awt.event.WindowStateListener, java.util.EventListener

public final class JAPAWTMsgBox
extends java.awt.event.WindowAdapter
implements java.awt.event.ActionListener

This is a simple Message Box. It works with JAVA 1.1 without Swing.


Field Summary
private  java.awt.Dialog d
           
 
Constructor Summary
private JAPAWTMsgBox(java.awt.Frame parent, java.lang.String msg, java.lang.String title)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
static int MsgBox(java.awt.Frame parent, java.lang.String msg, java.lang.String title)
          Shows a Message Box.
 void windowClosing(java.awt.event.WindowEvent e)
           
 
Methods inherited from class java.awt.event.WindowAdapter
windowActivated, windowClosed, windowDeactivated, windowDeiconified, windowGainedFocus, windowIconified, windowLostFocus, windowOpened, windowStateChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

d

private java.awt.Dialog d
Constructor Detail

JAPAWTMsgBox

private JAPAWTMsgBox(java.awt.Frame parent,
                     java.lang.String msg,
                     java.lang.String title)
Method Detail

MsgBox

public static final int MsgBox(java.awt.Frame parent,
                               java.lang.String msg,
                               java.lang.String title)
Shows a Message Box.

Parameters:
parent - The owner of the Message Box.
msg - The Message to Display. Multiple line can be separate by \n
title - The Title of the Message Box (Title of the Window displayed.)

windowClosing

public void windowClosing(java.awt.event.WindowEvent e)
Specified by:
windowClosing in interface java.awt.event.WindowListener
Overrides:
windowClosing in class java.awt.event.WindowAdapter

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener