MDIMenuFactory
for the application.
public class SimpleMDI extends AbstractMDIApplication { public SimpleMDI() { super("MDISimpleExample"); // plugins will be in the same directory as the main application jar pluginsDir = new File(System.getProperty("user.dir")); // initialize configuration without Preferences this.initConfiguration(); // register plugins in the plugins directory (same as main application jar directory) this.registerPlugins(); // create the menus with the Application menu factory mfactory = new SimpleMenuFactory(); // in this case: // - there is a default message area with 5 lines // - there is a toolbar // - there is a status bar super.preparePanels(4, true, true, mfactory); // set the size of the Application window this.setSize(500, 500); } }
Copyright 2006-2023 Herve Girod. All Rights Reserved. Documentation and source under the LGPL v2 and Apache 2.0 licences