public static void main(String[] args) {
    UILib.setPlatformLookAndFeel();

    JFrame f = demo();
    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    f.setVisible(true);
  }
  // the reworked main method, adding the jmenu
  public static void main(String argv[]) {
    String infile = DATA_FILE;
    String label = "name";

    if (argv.length > 1) {
      infile = argv[0];
      label = argv[1];
    }

    UILib.setPlatformLookAndFeel();

    JFrame frame = new JFrame("p r e f u s e  |  r a d i a l g r a p h v i e w");
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

    // have to leave for initialization
    frame.setContentPane(demo(infile, label));

    // adding menu bar
    frame.setJMenuBar(getMyMenuBar(frame));

    frame.pack();
    frame.setVisible(true);
  }
 public void init() {
   UILib.setPlatformLookAndFeel();
   JComponent graphview = demo("/output.graphml", "name");
   this.getContentPane().add(graphview);
 }