Package geomss.app
Class GeomSSGUI
- java.lang.Object
-
- jahuwaldt.swing.MDIApplication
-
- geomss.app.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 Summary
Constructors Constructor Description GeomSSGUI(java.util.ResourceBundle resBundle)
Constructor for our application that displays the GUI.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.desktop.AboutHandler
createAboutHandler()
Create an about handler for use in this application.java.awt.desktop.PreferencesHandler
createPreferencesHandler()
Return a preferences handler that displays the preference dialog for this application.javax.swing.Icon
getApplicationIcon()
Return the application icon for this program or null if one can not be found.java.awt.Frame
handleNew(java.awt.event.ActionEvent event)
Handle the user choosing the "New..." from the File menu.void
handleOpen(java.awt.event.ActionEvent event)
Handles the user choosing "Open" from the File menu.-
Methods inherited from class jahuwaldt.swing.MDIApplication
addQuitListener, addWindow, allOpenWindows, browse, getAboutJMenuItem, getFilenameFilter, getFramelessJMenuBar, getInstance, getName, getPreferences, getPreferencesJMenuItem, getPreferencesJMenuItem, getQuitJMenuItem, getQuitJMenuItem, getQuitOnClose, getResourceBundle, getTopWindow, handleClose, handleQuit, newWindowsMenu, removeQuitListener, setAboutHandler, setFilenameFilter, setFramelessJMenuBar, setName, setOpenFileHandler, setPreferences, setPreferencesHandler, setQuitHandler, setQuitOnClose, setResourceBundle, windowTitleChanged
-
-
-
-
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 anIllegalStateException
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 classMDIApplication
- 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
-
-