Пример #1
0
  /** 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();
  }
Пример #2
0
 /**
  * Return the JFrame containing the console
  *
  * @return console JFrame
  */
 public static JFrame getConsole() {
   return SystemConsole.getInstance().getFrame();
 }
Пример #3
0
 /**
  * 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;
 }