Package jmt.framework.gui.components

Examples of jmt.framework.gui.components.JMTMenuBar


    return tb;
  }


  private JMTMenuBar makeMenubar() {
    JMTMenuBar jmb = new JMTMenuBar(JMTImageLoader.getImageLoader());
    AbstractJMTAction[] menuItems = new AbstractJMTAction[] {
        new MenuAction("File", new AbstractJMTAction[] { FILE_NEW, FILE_OPEN, FILE_SAVE, null, FILE_EXIT }),
        new MenuAction("Action", new AbstractJMTAction[] { ACTION_SOLVE, ACTION_RANDOMIZE_MODEL, null, SWITCH_TO_SIMULATOR, null,
            ACTION_NEXT, ACTION_PREV }), new MenuAction("Help", new AbstractJMTAction[] { HELP, null, ABOUT }), };

    jmb.populateMenu(menuItems);
    return jmb;
  }
View Full Code Here


    }
    return tb;
  }

  private JMTMenuBar makeMenubar() {
    JMTMenuBar jmb = new JMTMenuBar(JMTImageLoader.getImageLoader());
    AbstractJMTAction[] menuItems = new AbstractJMTAction[] {
        new MenuAction("File", new AbstractJMTAction[] { FILE_NEW,
            FILE_OPEN, FILE_SAVE, null, FILE_EXIT }),
        new MenuAction("Action", new AbstractJMTAction[] {
            ACTION_SOLVE, ACTION_RANDOMIZE_MODEL, null,
            SWITCH_TO_SIMULATOR, null, ACTION_NEXT, ACTION_PREV }),
        new MenuAction("Help", new AbstractJMTAction[] { HELP, null,
            ABOUT }), };

    jmb.populateMenu(menuItems);
    return jmb;
  }
View Full Code Here

    toolbar.setFloatable(false);
    return toolbar;
  }

  private JMTMenuBar createMenuBar() {
    JMTMenuBar menuBar = new JMTMenuBar(JMTImageLoader.getImageLoader());
    AbstractJMTAction[] menus = new AbstractJMTAction[] {
    //File menu
        new MenuAction("File", new AbstractJMTAction[] { FILE_NEW, FILE_OPEN, FILE_SAVE, FILE_SAVEAS, null, FILE_EXIT }),
        //ActionMenu
        new MenuAction("Action", new AbstractJMTAction[] { ACTION_NEXT, ACTION_PREV, null, ACTION_SWITCH_JMVA }),
        //Simulation Menu
        new MenuAction("Simulation", new AbstractJMTAction[] { SIM_START, SIM_PAUSE, SIM_STOP, null, SHOW_RESULTS }),
        //Options menu
        new MenuAction("Define", new AbstractJMTAction[] { OPTIONS_DEFAULTS }),
        //Help Menu
        new MenuAction("Help", new AbstractJMTAction[] { HELP_SHOWHELP, null, HELP_CREDITS }) };
    menuBar.populateMenu(menus);
    return menuBar;
  }
View Full Code Here

  /**
   * Creates a menu to be displayed in main window.
   * @return created menu.
   */
  public JMTMenuBar createMenu() {
    JMTMenuBar menu = new JMTMenuBar(JMTImageLoader.getImageLoader());
    // File menu
    MenuAction action = new MenuAction("File", new AbstractJmodelAction[] { newModel, openModel, saveModel, saveModelAs, closeModel, null, exit });
    menu.addMenu(action);

    // Edit menu
    action = new MenuAction("Edit", new AbstractJmodelAction[] {
    // editUndo, editRedo, null
        actionCut, actionCopy, actionPaste, actionDelete, null, takeScreenShot });
    menu.addMenu(action);

    // Define menu
    action = new MenuAction("Define",
        new AbstractJmodelAction[] { editUserClasses, editMeasures, editSimParams, editPAParams, null, editDefaults });
    menu.addMenu(action);

    // Solve menu
    action = new MenuAction("Solve", new AbstractJmodelAction[] { simulate, pauseSimulation, stopSimulation, null, switchToExactSolver, null,
        showResults });
    menu.addMenu(action);

    // Help menu
    action = new MenuAction("Help", new AbstractJmodelAction[] { openHelp, null, about });
    menu.addMenu(action);

    return menu;
  }
View Full Code Here

TOP

Related Classes of jmt.framework.gui.components.JMTMenuBar

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.