Set the size and location of the GUI control panel

Now that the PictureExplorer object exists,

Listing 8. Set the size and location of the GUI control panel.
    //Set the size of the control GUI.
    setSize(explorerFrame.getWidth(),110);

    //Set the location for the control GUI
    setLocation(0,explorerFrame.getHeight());
    
    //Set the default close operation for the control GUI.
    setDefaultCloseOperation(
                           WindowConstants.EXIT_ON_CLOSE);
File: aw.htm [Next] [Prev]