/** Initial actions before frame is created, invoked in the applications main() routine. */ public static void preInit(String applicationName) { AppsBase.preInit(applicationName); // Initialise system console // Put this here rather than in apps.AppsBase as this is only relevant // for GUI applications - non-gui apps will use STDOUT & STDERR SystemConsole.create(); splash(true); setButtonSpace(); }
/** * Return the JFrame containing the console * * @return console JFrame */ public static JFrame getConsole() { return SystemConsole.getInstance().getFrame(); }
/** * Get current SystemConsole instance. If one doesn't yet exist, create it. * * @return current SystemConsole instance */ public static SystemConsole getInstance() { if (instance == null) { SystemConsole.create(); } return instance; }