ak.err
Class ErrBox

java.lang.Object
  |
  +--ak.err.ErrBox

public class ErrBox
extends java.lang.Object

Class ErrBox is implementaion of an application message-box. (e.g. Info-Box / Question-box / Warning-Box/... ) The layout of the Error-Box is dependent on choosen action-method.


Field Summary
(package private)  java.awt.Component comp
           
 
Constructor Summary
ErrBox()
          Default constructor:
 
Method Summary
 boolean show(java.lang.String sMSG)
          This method displays a simple dialog-box(no icon, one button):
 boolean show(java.lang.String sMSG, int nButton, int nIcon)
          This method displays the dialog-box: int nButton(number of buttons= 1 or 2) int nIcon(the Icon-style) see below: ----------------------------------------------- Message types. (
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

comp

java.awt.Component comp
Constructor Detail

ErrBox

public ErrBox()
Default constructor:
Method Detail

show

public boolean show(java.lang.String sMSG)
This method displays a simple dialog-box(no icon, one button):

show

public boolean show(java.lang.String sMSG,
                    int nButton,
                    int nIcon)
This method displays the dialog-box: int nButton(number of buttons= 1 or 2) int nIcon(the Icon-style) see below: ----------------------------------------------- Message types. (=what icon to display.) int ERROR_MESSAGE = 0; int INFORMATION_MESSAGE = 1; int WARNING_MESSAGE = 2; int QUESTION_MESSAGE = 3; int PLAIN_MESSAGE = -1;