/**
* 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;
}