Package lbnl.util
Class WarningWindow
- java.lang.Object
-
- 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 displayed until it is closed by the user.- Since:
- Ptolemy II 8.0
- Version:
- $Id$
- Author:
- Michael Wetter
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
msg
The warning message.
-
Constructor Summary
Constructors Constructor Description WarningWindow(java.lang.String message)
Construct an instance and set the message to be displayed in the window.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run()
Display the message dialog.
-