java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
javax.swing.JDialog
com.inductiveautomation.ignition.client.util.gui.date_selector.Popup_dialog
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants
Direct Known Subclasses:
Date_selector_dialog

public class Popup_dialog extends JDialog
A Popup_dialog is a clean, lightweight, "modal" window intended for simple pop-up user-interface widgets. The frame, as shown at right, is a single-pixel-wide line; the title bar holds only the title text and a small "close-window" icon. The dialog box can be dragged around on the screen by grabbing the title bar (and closed by clicking on the icon), but the user can't resize it, minimize it, etc. (Your program can do so, of course).

The "close" icon in the current implementation is an image loaded as a "resource" from the CLASSPATH. The file must be located at

$CLASSPATH/images/8px.red.X.gif
where $CLASSPATH is any directory on your CLASSPATH. If the class can't find the image file, it uses the character "X" instead. The main problem with this approach is that you can't change the color of the close icon to math the title-bar colors. Future versions of this class will fix the problem by rendering the image internally.

NOTE: This class was totally gutted by C. Gould

See Also:
  • Constructor Details

    • Popup_dialog

      public Popup_dialog(Frame owner)
    • Popup_dialog

      public Popup_dialog(Dialog owner)
  • Method Details

    • getContentPane

      public Container getContentPane()
      Add your widgets to the window returned by this method, in a manner similar to a JFrame. Do not modify the Poup_dialog itself. The returned container is a JPanel with a preinstalled BorderLayout. By default, it's colored colored dialog-box gray.
      Specified by:
      getContentPane in interface RootPaneContainer
      Overrides:
      getContentPane in class JDialog
      Returns:
      the content pane.