ch.aplu.util
Class MessageDialog

java.lang.Object
  |
  +--ch.aplu.util.MessageDialog

public class MessageDialog
extends java.lang.Object

Class to show simple message dialog (with no prompt button). The dialog is modeless, e.g. it "floats" while the application continues.


Constructor Summary
MessageDialog(java.awt.Component parent, java.lang.String message)
          Construct a dialog with given message, which is not yet shown. show() will display the dialog in the center of the given component.
MessageDialog(java.lang.String message)
          Same as MessageDialog(parent, message ) with parent = null.
 
Method Summary
 void close()
          Hide the modeless message dialog previously shown.
 void show()
          Show a modeless message dialog with given message.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageDialog

public MessageDialog(java.awt.Component parent,
                     java.lang.String message)
Construct a dialog with given message, which is not yet shown. show() will display the dialog in the center of the given component.


MessageDialog

public MessageDialog(java.lang.String message)
Same as MessageDialog(parent, message ) with parent = null.

Method Detail

show

public void show()
Show a modeless message dialog with given message. Returns immediately.


close

public void close()
Hide the modeless message dialog previously shown. May be reshown calling show().