Example #1
0
  public void showConsole() {
    java.awt.Dimension d = new java.awt.Dimension(400, 400);

    if (console == null) {
      console = new Console();
      console.setPreferredSize(d);
      console.setSize(d);
      console.setLocationRelativeTo(getCurrentDocument());
      console.setVisible(true);
    }

    console.setLocationRelativeTo(getCurrentDocument());
    console.setVisible(true);

    for (NodeBoxDocument document : documents) {
      // document.onConsoleVisibleEvent(true);
    }
  }
Example #2
0
  public static void main(String[] args) {
    System.setProperty("com.apple.mrj.application.apple.menu.about.name", APP_TITLE);
    try {
      Console c = new Console();
      c.setLocationRelativeTo(null);
    } catch (IOException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }

    WelcomeViewer wv = new WelcomeViewer();
    wv.display();
    wv.setVisible(true);
    wv.setSize(400, 520);
    wv.setResizable(false);
    wv.setTitle(APP_TITLE);
  }