Class IndependentDialog

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

    public class IndependentDialog
    extends JDialog
    Provides common L&F for managing independent dialogs Takes RootPaneContainer as parent, to work with both applet and app Will reset L&F example of use: infoWindow = new IndependentDialog(topLevel.getRootPaneContainer(), false, "Dataset Information"); datasetInfoTA = new TextHistoryPane(500, 100, true); Container cp = infoWindow.getContentPane(); cp.add(datasetInfoTA, BorderLayout.CENTER); infoWindow.pack(); infoWindow.setSize(700,700); infoWindow.setLocation(100,100);
    See Also:
    Serialized Form
    • Field Detail

      • parent

        protected JFrame parent
    • Constructor Detail

      • IndependentDialog

        public IndependentDialog​(JFrame parent,
                                 boolean modal,
                                 String title)
        constructor
        Parameters:
        parent - JFrame (application) or JApplet (applet)
        modal - is modal
        title - Window title
      • IndependentDialog

        public IndependentDialog​(JFrame parent,
                                 boolean modal,
                                 String title,
                                 Component comp)