Home
Categories
Dictionary
Download
Project Details
Changes Log
Tutorials
FAQ
License

Application



A MDIApplication is an interface which is the top-level element of the MDIFramework. It does not provide a UI by default but provides the following utilities: The AbstractApplication is an abstract implementation which ease the creation of a application.

Application initialization


The constructor of the application allows to configure the content of the application, including:

Exiting of the application

The MDIApplication.disposeApplication() method is called when the application is disposed of (for example when closing the window, or explicitly exiting the application). You can override the method if you want to get rid of resources created at the application creation, for example:
   @Override
   public void disposeApplication() {
      // do something to get rid of used resources
      super.disposeApplication();
   }   

GUI applications

Main Article: GUI application

GUI applications are applications which manage the concept of "tabbed documents". They support several concepts which are not available on regular applications, such as: A GUI application must implement the GUIApplication interface. There are two abstract GUI implementations for the Swing and JavaFX frameworks:

Restarting an application

The LauncherConf.restart(MDIApplication) allows to restart the application. This method will call MDIApplication.disposeApplication() to exit.

See also


Categories: General | Javafx | Swing

Copyright 2006-2023 Herve Girod. All Rights Reserved. Documentation and source under the LGPL v2 and Apache 2.0 licences