lbnl.util
Class WarningWindow

java.lang.Object
  extended by lbnl.util.WarningWindow
All Implemented Interfaces:
java.lang.Runnable

public class WarningWindow
extends java.lang.Object
implements java.lang.Runnable

Class to create a warning window in a new thread. Creating the warning window in a new thread allows to continue the simulation. If Ptolemy is run as a console application, this dialog will be destroyed when Ptolemy reaches the final time. However, if Ptolemy is run from vergil, then the dialog box remains diplayed until it is closed by the user.

Since:
Ptolemy II 8.0
Version:
$Id: WarningWindow.java 59167 2010-09-21 17:08:02Z cxh $
Author:
Michael Wetter

Field Summary
protected  java.lang.String msg
          The warning message.
 
Constructor Summary
WarningWindow(java.lang.String message)
          Construct an instance and set the message to be displayed in the window.
 
Method Summary
 void run()
          Display the message dialog.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

msg

protected java.lang.String msg
The warning message.

Constructor Detail

WarningWindow

public WarningWindow(java.lang.String message)
Construct an instance and set the message to be displayed in the window.

Parameters:
message - The message to be displayed.
Method Detail

run

public void run()
Display the message dialog.

Specified by:
run in interface java.lang.Runnable