public class MyApplication extends AbstractMDIApplication { public MyApplication() { super("MyApplication"); conf = AppliConfiguration.getInstance(); // specify the Plugins directory pluginsDir = new File(System.getProperty("user.dir")); pluginsDir = new File(pluginsDir, "dist/plugins"); this.setPluginsConfiguration(pluginsDir, null); // initialize configuration with Preferences pref = Preferences.userRoot(); this.initConfiguration(pref, null); // register the Plugins this.registerPlugins(); // create the application panels mfactory = new SimpleMenuFactory(); 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