コード例 #1
0
  /**
   * This method is used to set up all the frames that we will need. Passes them to the mainwindow
   * so that we can choose which frames are going to be visible based on what button is pressed.
   *
   * @throws IOException
   */
  private static void initializeWindows() throws IOException {

    EditorWindow editor = new EditorWindow("");
    editor.pack();

    EditorFilePopup popup = new EditorFilePopup(editor);
    popup.pack();

    frames.add(popup);
    frames.add(editor);

    MainWindow main = new MainWindow(frames);
    popup.setMainReference(main);
    editor.setMainReference(main);
    main.pack();

    // This might be important?
    // launcher.setMainFrame(main);
  }