Class IndependentWindow

  • All Implemented Interfaces:
    ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

    public class IndependentWindow
    extends JFrame
    Provides common L&F for managing independent windows Will reset L&F example:
     infoWindow = new IndependentWindow("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
    • Constructor Detail

      • IndependentWindow

        public IndependentWindow​(String title,
                                 Image iconImage)
        constructor
        Parameters:
        title - Window title
        iconImage - image to show when iconified
      • IndependentWindow

        public IndependentWindow​(String title,
                                 Image iconImage,
                                 Component comp)
        constructor
        Parameters:
        title - Window title.
        comp - the COmponent to put in the window.
    • Method Detail

      • setComponent

        public void setComponent​(Component comp)
      • show

        public void show()
        show the window.
        Overrides:
        show in class Window
      • showIfNotIconified

        public void showIfNotIconified()
        show if not iconified