public JMenu buildSketchMenu() {
    JMenuItem runItem = Toolkit.newJMenuItem(JavaToolbar.getTitle(JavaToolbar.RUN, false), 'R');
    runItem.addActionListener(
        new ActionListener() {
          public void actionPerformed(ActionEvent e) {
            handleRun();
          }
        });

    JMenuItem presentItem =
        Toolkit.newJMenuItemShift(JavaToolbar.getTitle(JavaToolbar.RUN, true), 'R');
    presentItem.addActionListener(
        new ActionListener() {
          public void actionPerformed(ActionEvent e) {
            handlePresent();
          }
        });

    JMenuItem stopItem = new JMenuItem(JavaToolbar.getTitle(JavaToolbar.STOP, false));
    stopItem.addActionListener(
        new ActionListener() {
          public void actionPerformed(ActionEvent e) {
            handleStop();
          }
        });
    return buildSketchMenu(new JMenuItem[] {runItem, presentItem, stopItem});
  }
  public JMenu buildFileMenu() {
    String appTitle = JavaToolbar.getTitle(JavaToolbar.EXPORT, false);
    JMenuItem exportApplication = Toolkit.newJMenuItem(appTitle, 'E');
    exportApplication.addActionListener(
        new ActionListener() {
          public void actionPerformed(ActionEvent e) {
            handleExportApplication();
          }
        });
    //    String appletTitle = JavaToolbar.getTitle(JavaToolbar.EXPORT, true);
    //    JMenuItem exportApplet = Base.newJMenuItemShift(appletTitle, 'E');
    //    exportApplet.addActionListener(new ActionListener() {
    //      public void actionPerformed(ActionEvent e) {
    //        handleExportApplet();
    //      }
    //    });

    //    return buildFileMenu(new JMenuItem[] { exportApplication, exportApplet });
    return buildFileMenu(new JMenuItem[] {exportApplication});
  }