Back to index

wims  3.65+svn20090927
Public Member Functions
fr.ove.errordialog.ErrorDialog Class Reference

A dialog box for error messages. More...

List of all members.

Public Member Functions

 ErrorDialog (Frame parent, boolean modal)
void addMesg (Component mesg)

Detailed Description

A dialog box for error messages.


The error messages must take the form of a java.awt.Component (and subclasses), that way sophisticated managment errors can be achieved.

Author:
1998 DIRAT Laurent
Version:
1.0 13/04/99

Definition at line 42 of file ErrorDialog.java.


Constructor & Destructor Documentation

fr.ove.errordialog.ErrorDialog.ErrorDialog ( Frame  parent,
boolean  modal 
) [inline]

Definition at line 43 of file ErrorDialog.java.

                                                        {
              super(parent, modal);
              
              setLayout(new BorderLayout(0, 0));
              setTitle("Oups, we've got a problem...");
              
              addWindowListener(
                  new WindowAdapter()     {
                     public void windowClosing(WindowEvent event) {
                            dispose();
              }
            }
        );
    }

Member Function Documentation

void fr.ove.errordialog.ErrorDialog.addMesg ( Component  mesg) [inline]

Definition at line 58 of file ErrorDialog.java.

                                        {
        add("Center", mesg);
        validate();
    }

The documentation for this class was generated from the following file: