public class ApplicationExample2 extends Application
Application.ExitListener
Constructor and Description |
---|
ApplicationExample2() |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args) |
protected void |
shutdown()
Called when the application
exits . |
protected void |
startup()
Responsible for starting the application; for creating and showing
the initial GUI.
|
addExitListener, end, exit, exit, getContext, getExitListeners, getInstance, getInstance, hide, initialize, launch, quit, ready, removeExitListener, show
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
protected void startup()
Application
This method is called by the static launch
method,
subclasses must override it. It runs on the event dispatching
thread.
startup
in class Application
Application.launch(java.lang.Class<T>, java.lang.String[])
,
Application.initialize(java.lang.String[])
,
Application.shutdown()
protected void shutdown()
Application
exits
.
Subclasses may override this method to do any cleanup
tasks that are neccessary before exiting. Obviously, you'll want to try
and do as little as possible at this point. This method runs
on the event dispatching thread.public static void main(java.lang.String[] args)