Example #1
0
  private static void createAndShowGUI() {
    JComponent newContentPane = new Splitter();
    newContentPane.setOpaque(true);

    frame = new JFrame("Splitting " + EpubUtils.EPUB.getName());
    frame.setContentPane(newContentPane);
    frame.pack();
    frame.setVisible(true);
  }
Example #2
0
  /**
   * Create the GUI and show it. As with all GUI code, this must run on the event-dispatching
   * thread.
   */
  public static void createAndShowGUI(Properties theProperties) {
    // Create and set up the window.
    JFrame frame = new JFrame("Remote File Sync");
    // frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

    // Create and set up the content pane.
    JComponent newContentPane = new ProcessFrame(theProperties);
    newContentPane.setOpaque(true); // content panes must be opaque
    frame.setContentPane(newContentPane);

    // Display the window.
    frame.pack();
    frame.setVisible(true);
  }