Package lbnl.util

Class 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.
      • 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