Class OSPDialog

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants
Direct Known Subclasses:
DrawingDialog

public class OSPDialog extends JDialog
OSPDialog is a standard dialog that can remain hidden in applet mode. Copyright: Copyright (c) 2002
Version:
1.0
Author:
Wolfgang Christian
See Also:
  • Field Details

    • appletMode

      public static boolean appletMode
      Set true if the program is an applet.
    • applet

      public static JApplet applet
      Field myApplet provides a static reference to an applet context so that the document base and code base can be obtained in applet mode.
    • constructorThreadGroup

      public ThreadGroup constructorThreadGroup
      The thread group that created this object.
    • keepHidden

      protected boolean keepHidden
    • strategy

      protected BufferStrategy strategy
  • Constructor Details

    • OSPDialog

      public OSPDialog(Frame owner, String title, boolean modal)
      Constricts a dialog that can be kept hidden in applets.
      Parameters:
      owner - Dialog
      title - String
      modal - boolean
    • OSPDialog

      public OSPDialog(String title)
      OSPDialog constructor with a title.
      Parameters:
      title -
    • OSPDialog

      public OSPDialog()
      OSPDialog constructor.
  • Method Details

    • setSize

      public void setSize(int width, int height)
      Overrides:
      setSize in class Window
    • show

      @Deprecated public void show()
      Deprecated.
      Shows the frame on the screen if the keep hidden flag is false.
      Overrides:
      show in class Dialog
    • setKeepHidden

      public void setKeepHidden(boolean _keepHidden)
      Sets the keepHidden flag.
      Parameters:
      _keepHidden -
    • isKeepHidden

      public boolean isKeepHidden()
      Reads the keepHidden flag.
    • getConstructorThreadGroup

      public ThreadGroup getConstructorThreadGroup()
      Gets the ThreadGroup that constructed this frame.
      Returns:
      the ThreadGroup
    • createBufferStrategy

      protected void createBufferStrategy()
      Creates a BufferStrategy based on the capabilites of the hardware.
    • render

      public void render()
      Renders the frame using the current BufferStrategy.