Package geomss.app

Class GeomSSGUI


  • public class GeomSSGUI
    extends MDIApplication
    This class represents a multi-document interface GUI application for use in this program.

    Modified by: Joseph A. Huwaldt

    Version:
    January 1, 2024
    Author:
    Joseph A. Huwaldt, Date: May 2, 2009
    • Constructor Detail

      • GeomSSGUI

        public GeomSSGUI​(java.util.ResourceBundle resBundle)
                  throws java.lang.Exception
        Constructor for our application that displays the GUI. Note that only one can ever be created. Attempting to instantiate more will result in an IllegalStateException being thrown.
        Parameters:
        resBundle - A reference to the resource bundle for this application.
        Throws:
        java.lang.Exception - if there is any problem constructing this GUI.
    • Method Detail

      • handleNew

        public java.awt.Frame handleNew​(java.awt.event.ActionEvent event)
        Handle the user choosing the "New..." from the File menu. Creates and returns a reference to a new document window.
        Overrides:
        handleNew in class MDIApplication
        Parameters:
        event - The event that caused this method to be called (ignored).
        Returns:
        A new window frame for the application.
      • handleOpen

        public void handleOpen​(java.awt.event.ActionEvent event)
        Handles the user choosing "Open" from the File menu. Allows the user to choose a geometry file to open.
        Parameters:
        event - The action event that caused this method to be called (ignored).
      • createAboutHandler

        public java.awt.desktop.AboutHandler createAboutHandler()
        Create an about handler for use in this application.
        Returns:
        The about menu item for this program.
      • getApplicationIcon

        public javax.swing.Icon getApplicationIcon()
        Return the application icon for this program or null if one can not be found.
        Returns:
        The application icon for this program.
      • createPreferencesHandler

        public java.awt.desktop.PreferencesHandler createPreferencesHandler()
        Return a preferences handler that displays the preference dialog for this application.
        Returns:
        A preferences handler