public CommonMenuBar() {
Menu menu = null;
Menu submenu = null;
Menu aeromenu = null;
MenuItem item = null;
// *** Create the File menu.
menu = new Menu(Messages.getString("CommonMenuBar.FileMenu")); //$NON-NLS-1$
add(menu);
// Create the Game sub-menu.
submenu = new Menu(Messages.getString("CommonMenuBar.GameMenu")); //$NON-NLS-1$
menu.add(submenu);
fileGameNew = new MenuItem(Messages
.getString("CommonMenuBar.fileGameNew")); //$NON-NLS-1$
fileGameNew.addActionListener(this);
fileGameNew.setActionCommand("fileGameNew"); //$NON-NLS-1$
submenu.add(fileGameNew);
fileGameOpen = new MenuItem(Messages
.getString("CommonMenuBar.fileGameOpen")); //$NON-NLS-1$
fileGameOpen.addActionListener(this);
fileGameOpen.setActionCommand("fileGameOpen"); //$NON-NLS-1$
submenu.add(fileGameOpen);
fileGameSave = new MenuItem(Messages
.getString("CommonMenuBar.fileGameSave")); //$NON-NLS-1$
fileGameSave.addActionListener(this);
fileGameSave.setActionCommand("fileGameSave"); //$NON-NLS-1$
submenu.add(fileGameSave);
submenu.addSeparator();
fileGameScenario = new MenuItem(Messages
.getString("CommonMenuBar.fileGameScenario")); //$NON-NLS-1$
fileGameScenario.addActionListener(this);
fileGameScenario.setActionCommand("fileGameScenario"); //$NON-NLS-1$
submenu.add(fileGameScenario);
submenu.addSeparator();
fileGameConnectBot = new MenuItem(Messages
.getString("CommonMenuBar.fileGameConnectBot")); //$NON-NLS-1$
fileGameConnectBot.addActionListener(this);
fileGameConnectBot.setActionCommand("fileGameConnectBot"); //$NON-NLS-1$
submenu.add(fileGameConnectBot);
fileGameConnect = new MenuItem(Messages
.getString("CommonMenuBar.fileGameConnect")); //$NON-NLS-1$
fileGameConnect.addActionListener(this);
fileGameConnect.setActionCommand("fileGameConnect"); //$NON-NLS-1$
submenu.add(fileGameConnect);
// Create the Board sub-menu.
submenu = new Menu(Messages.getString("CommonMenuBar.BoardMenu")); //$NON-NLS-1$
menu.add(submenu);
fileBoardNew = new MenuItem(Messages
.getString("CommonMenuBar.fileBoardNew")); //$NON-NLS-1$
fileBoardNew.addActionListener(this);
fileBoardNew.setActionCommand("fileBoardNew"); //$NON-NLS-1$
submenu.add(fileBoardNew);
fileBoardOpen = new MenuItem(Messages
.getString("CommonMenuBar.fileBoardOpen")); //$NON-NLS-1$
fileBoardOpen.addActionListener(this);
fileBoardOpen.setActionCommand("fileBoardOpen"); //$NON-NLS-1$
submenu.add(fileBoardOpen);
fileBoardSave = new MenuItem(Messages
.getString("CommonMenuBar.fileBoardSave")); //$NON-NLS-1$
fileBoardSave.addActionListener(this);
fileBoardSave.setActionCommand("fileBoardSave"); //$NON-NLS-1$
submenu.add(fileBoardSave);
fileBoardSaveAs = new MenuItem(Messages
.getString("CommonMenuBar.fileBoardSaveAs")); //$NON-NLS-1$
fileBoardSaveAs.addActionListener(this);
fileBoardSaveAs.setActionCommand("fileBoardSaveAs"); //$NON-NLS-1$
submenu.add(fileBoardSaveAs);
fileBoardSaveAsImage = new MenuItem(Messages
.getString("CommonMenuBar.fileBoardSaveAsImage")); //$NON-NLS-1$
fileBoardSaveAsImage.addActionListener(this);
fileBoardSaveAsImage.setActionCommand("fileBoardSaveAsImage"); //$NON-NLS-1$
submenu.add(fileBoardSaveAsImage);
// Create the Unit List sub-menu.
submenu = new Menu(Messages.getString("CommonMenuBar.UnitListMenu")); //$NON-NLS-1$
menu.add(submenu);
fileUnitsOpen = new MenuItem(Messages
.getString("CommonMenuBar.fileUnitsOpen")); //$NON-NLS-1$
fileUnitsOpen.addActionListener(this);
fileUnitsOpen.setActionCommand("fileUnitsOpen"); //$NON-NLS-1$
submenu.add(fileUnitsOpen);
fileUnitsClear = new MenuItem(Messages
.getString("CommonMenuBar.fileUnitsClear")); //$NON-NLS-1$
fileUnitsClear.addActionListener(this);
fileUnitsClear.setActionCommand("fileUnitsClear"); //$NON-NLS-1$
submenu.add(fileUnitsClear);
fileUnitsSave = new MenuItem(Messages
.getString("CommonMenuBar.fileUnitsSave")); //$NON-NLS-1$
fileUnitsSave.addActionListener(this);
fileUnitsSave.setActionCommand("fileUnitsSave"); //$NON-NLS-1$
submenu.add(fileUnitsSave);
// Finish off the File menu.
filePrint = new MenuItem(Messages.getString("CommonMenuBar.PrintMenu")); //$NON-NLS-1$
filePrint.addActionListener(this);
filePrint.setActionCommand("filePrint"); //$NON-NLS-1$
filePrint.setEnabled(false);
menu.addSeparator();
menu.add(filePrint);
// *** Create the view menu.
menu = new Menu(Messages.getString("CommonMenuBar.ViewMenu")); //$NON-NLS-1$
add(menu);
viewMekDisplay = new MenuItem(Messages
.getString("CommonMenuBar.viewMekDisplay")); //$NON-NLS-1$
viewMekDisplay.addActionListener(this);
viewMekDisplay.setActionCommand(ClientGUI.VIEW_MEK_DISPLAY);
viewMekDisplay.setShortcut(new MenuShortcut(KeyEvent.VK_D));
menu.add(viewMekDisplay);
viewMiniMap = new MenuItem(Messages
.getString("CommonMenuBar.viewMiniMap")); //$NON-NLS-1$
viewMiniMap.addActionListener(this);
viewMiniMap.setActionCommand(ClientGUI.VIEW_MINI_MAP);
viewMiniMap.setShortcut(new MenuShortcut(KeyEvent.VK_M));
menu.add(viewMiniMap);
viewUnitOverview = new MenuItem(Messages
.getString("CommonMenuBar.viewUnitOverview")); //$NON-NLS-1$
viewUnitOverview.addActionListener(this);
viewUnitOverview.setActionCommand(ClientGUI.VIEW_UNIT_OVERVIEW);
viewUnitOverview.setShortcut(new MenuShortcut(KeyEvent.VK_U));
menu.add(viewUnitOverview);
viewZoomIn = new MenuItem(Messages
.getString("CommonMenuBar.viewZoomIn")); //$NON-NLS-1$
viewZoomIn.addActionListener(this);
viewZoomIn.setActionCommand(ClientGUI.VIEW_ZOOM_IN);
menu.add(viewZoomIn);
viewZoomOut = new MenuItem(Messages
.getString("CommonMenuBar.viewZoomOut")); //$NON-NLS-1$
viewZoomOut.addActionListener(this);
viewZoomOut.setActionCommand(ClientGUI.VIEW_ZOOM_OUT);
menu.add(viewZoomOut);
menu.addSeparator();
viewRoundReport = new MenuItem(Messages
.getString("CommonMenuBar.viewRoundReport")); //$NON-NLS-1$
viewRoundReport.addActionListener(this);
viewRoundReport.setActionCommand("viewRoundReport"); //$NON-NLS-1$
viewRoundReport.setShortcut(new MenuShortcut(KeyEvent.VK_R));
menu.add(viewRoundReport);
menu.addSeparator();
viewGameOptions = new MenuItem(Messages
.getString("CommonMenuBar.viewGameOptions")); //$NON-NLS-1$
viewGameOptions.setActionCommand("viewGameOptions"); //$NON-NLS-1$
viewGameOptions.addActionListener(this);
menu.add(viewGameOptions);
viewClientSettings = new MenuItem(Messages
.getString("CommonMenuBar.viewClientSettings")); //$NON-NLS-1$
viewClientSettings.setActionCommand("viewClientSettings"); //$NON-NLS-1$
viewClientSettings.addActionListener(this);
menu.add(viewClientSettings);
viewLOSSetting = new MenuItem(Messages
.getString("CommonMenuBar.viewLOSSetting")); //$NON-NLS-1$
viewLOSSetting.addActionListener(this);
viewLOSSetting.setActionCommand(ClientGUI.VIEW_LOS_SETTING);
viewLOSSetting.setShortcut(new MenuShortcut(KeyEvent.VK_L));
menu.add(viewLOSSetting);
menu.addSeparator();
viewPlayerList = new MenuItem(Messages
.getString("CommonMenuBar.viewPlayerList")); //$NON-NLS-1$
viewPlayerList.setActionCommand("viewPlayerList"); //$NON-NLS-1$
viewPlayerList.addActionListener(this);
menu.add(viewPlayerList);
// *** Create the deployo menu.
menu = new Menu(Messages.getString("CommonMenuBar.DeployMenu")); //$NON-NLS-1$
add(menu);
// Create the Mines sub-menu.
submenu = new Menu(Messages.getString("CommonMenuBar.DeployMinesMenu")); //$NON-NLS-1$
deployMinesConventional = createMenuItem(
submenu,
Messages.getString("CommonMenuBar.deployMinesConventional"), DeployMinefieldDisplay.DEPLOY_MINE_CONV); //$NON-NLS-1$
deployMinesCommand = createMenuItem(
submenu,
Messages.getString("CommonMenuBar.deployMinesCommand"), DeployMinefieldDisplay.DEPLOY_MINE_COM); //$NON-NLS-1$
deployMinesVibrabomb = createMenuItem(
submenu,
Messages.getString("CommonMenuBar.deployMinesVibrabomb"), DeployMinefieldDisplay.DEPLOY_MINE_VIBRA); //$NON-NLS-1$
deployMinesActive = createMenuItem(
submenu,
Messages.getString("CommonMenuBar.deployMinesActive"), DeployMinefieldDisplay.DEPLOY_MINE_ACTIVE); //$NON-NLS-1$
deployMinesInferno = createMenuItem(
submenu,
Messages.getString("CommonMenuBar.deployMinesInferno"), DeployMinefieldDisplay.DEPLOY_MINE_INFERNO); //$NON-NLS-1$
// Finish off the deploy menu.
deployNext = createMenuItem(
menu,
Messages.getString("CommonMenuBar.deployNext"), DeploymentDisplay.DEPLOY_NEXT, KeyEvent.VK_N); //$NON-NLS-1$
deployTurn = createMenuItem(
menu,
Messages.getString("CommonMenuBar.deployTurn"), DeploymentDisplay.DEPLOY_TURN); //$NON-NLS-1$
deployLoad = createMenuItem(
menu,
Messages.getString("CommonMenuBar.deployLoad"), DeploymentDisplay.DEPLOY_LOAD); //$NON-NLS-1$
deployUnload = createMenuItem(
menu,
Messages.getString("CommonMenuBar.deployUnload"), DeploymentDisplay.DEPLOY_UNLOAD); //$NON-NLS-1$
deployRemove = createMenuItem(
menu,
Messages.getString("CommonMenuBar.deployRemove"), DeploymentDisplay.DEPLOY_REMOVE); //$NON-NLS-1$
deployAssaultDrop = createMenuItem(
menu,
Messages.getString("CommonMenuBar.deployAssaultDrop"), DeploymentDisplay.DEPLOY_ASSAULTDROP); //$NON-NLS-1$
deployFormSquadron = createMenuItem(
menu,
Messages.getString("CommonMenuBar.deployFormSquadron"), DeploymentDisplay.DEPLOY_FORM_SQUADRON); //$NON-NLS-1$
menu.addSeparator();
menu.add(submenu);
// *** Create the move menu.
menu = new Menu(Messages.getString("CommonMenuBar.MoveMenu")); //$NON-NLS-1$
add(menu);
moveWalk = createMenuItem(
menu,
Messages.getString("CommonMenuBar.moveWalk"), MovementDisplay.MOVE_WALK, KeyEvent.VK_W); //$NON-NLS-1$
moveJump = createMenuItem(
menu,
Messages.getString("CommonMenuBar.moveJump"), MovementDisplay.MOVE_JUMP, KeyEvent.VK_J); //$NON-NLS-1$
moveSwim = createMenuItem(
menu,
Messages.getString("CommonMenuBar.moveSwim"), MovementDisplay.MOVE_SWIM, KeyEvent.VK_S); //$NON-NLS-1$
moveBackUp = createMenuItem(
menu,
Messages.getString("CommonMenuBar.moveBackUp"), MovementDisplay.MOVE_BACK_UP); //$NON-NLS-1$
moveGetUp = createMenuItem(
menu,
Messages.getString("CommonMenuBar.moveGetUp"), MovementDisplay.MOVE_GET_UP); //$NON-NLS-1$
moveGoProne = createMenuItem(
menu,
Messages.getString("CommonMenuBar.moveGoProne"), MovementDisplay.MOVE_GO_PRONE); //$NON-NLS-1$
moveTurn = createMenuItem(menu, Messages
.getString("CommonMenuBar.moveTurn"), MovementDisplay.MOVE_TURN); //$NON-NLS-1$
moveNext = createMenuItem(
menu,
Messages.getString("CommonMenuBar.moveNext"), MovementDisplay.MOVE_NEXT, KeyEvent.VK_N); //$NON-NLS-1$
moveRaise = createMenuItem(
menu,
Messages.getString("CommonMenuBar.moveRaise"), MovementDisplay.MOVE_RAISE_ELEVATION); //$NON-NLS-1$
moveLower = createMenuItem(
menu,
Messages.getString("CommonMenuBar.moveLower"), MovementDisplay.MOVE_LOWER_ELEVATION); //$NON-NLS-1$
moveReckless = createMenuItem(
menu,
Messages.getString("CommonMenuBar.moveReckless"), MovementDisplay.MOVE_RECKLESS); //$NON-NLS-1$
moveEvade = createMenuItem(
menu,
Messages.getString("CommonMenuBar.moveEvade"), MovementDisplay.MOVE_EVADE); //$NON-NLS-1$
//add aero stuff
aeromenu = new Menu(Messages.getString("CommonMenuBar.AeroMenu")); //$NON-NLS-1$
moveAcc = createMenuItem(aeromenu, Messages.getString("CommonMenuBar.moveAcc"), MovementDisplay.MOVE_ACC); //$NON-NLS-1$
moveDec = createMenuItem(aeromenu, Messages.getString("CommonMenuBar.moveDec"), MovementDisplay.MOVE_DEC); //$NON-NLS-1$
moveAccN = createMenuItem(aeromenu, Messages.getString("CommonMenuBar.moveAccN"), MovementDisplay.MOVE_ACCN); //$NON-NLS-1$
moveDecN = createMenuItem(aeromenu, Messages.getString("CommonMenuBar.moveDecN"), MovementDisplay.MOVE_DECN); //$NON-NLS-1$
moveRoll = createMenuItem(aeromenu, Messages.getString("CommonMenuBar.moveRoll"), MovementDisplay.MOVE_ROLL); //$NON-NLS-1$
moveHover = createMenuItem(aeromenu, Messages.getString("CommonMenuBar.moveHover"), MovementDisplay.MOVE_HOVER); //$NON-NLS-1$
moveManeuver = createMenuItem(aeromenu, Messages.getString("CommonMenuBar.moveManeuver"), MovementDisplay.MOVE_MANEUVER); //$NON-NLS-1$
moveEvadeAero = createMenuItem(aeromenu, Messages.getString("CommonMenuBar.moveEvadeAero"), MovementDisplay.MOVE_EVADE); //$NON-NLS-1$
aeromenu.addSeparator();
moveTurnLeft = createMenuItem(aeromenu, Messages.getString("CommonMenuBar.moveTurnLeft"), MovementDisplay.MOVE_TURN_LEFT); //$NON-NLS-1$
moveTurnRight = createMenuItem(aeromenu, Messages.getString("CommonMenuBar.moveTurnRight"), MovementDisplay.MOVE_TURN_RIGHT); //$NON-NLS-1$
moveThrust = createMenuItem(aeromenu, Messages.getString("CommonMenuBar.moveThrust"), MovementDisplay.MOVE_THRUST); //$NON-NLS-1$
moveYaw = createMenuItem(aeromenu, Messages.getString("CommonMenuBar.moveYaw"), MovementDisplay.MOVE_YAW); //$NON-NLS-1$
moveEndOver = createMenuItem(aeromenu, Messages.getString("CommonMenuBar.moveEndOver"), MovementDisplay.MOVE_END_OVER); //$NON-NLS-1$
menu.addSeparator();
menu.add(aeromenu);
// Create the Special sub-menu.
submenu = new Menu(Messages.getString("CommonMenuBar.SpecialMenu")); //$NON-NLS-1$
moveLoad = createMenuItem(submenu, Messages
.getString("CommonMenuBar.MoveLoad"), MovementDisplay.MOVE_LOAD); //$NON-NLS-1$
moveUnload = createMenuItem(
submenu,
Messages.getString("CommonMenuBar.MoveUnload"), MovementDisplay.MOVE_UNLOAD); //$NON-NLS-1$
moveLaunch = createMenuItem(submenu, Messages.getString("CommonMenuBar.moveLaunch"), MovementDisplay.MOVE_LAUNCH); //$NON-NLS-1$
moveRecover = createMenuItem(submenu, Messages.getString("CommonMenuBar.moveRecover"), MovementDisplay.MOVE_RECOVER); //$NON-NLS-1$
moveJoin = createMenuItem(submenu, Messages.getString("CommonMenuBar.moveJoin"), MovementDisplay.MOVE_JOIN); //$NON-NLS-1$
submenu.addSeparator();
moveCharge = createMenuItem(
submenu,
Messages.getString("CommonMenuBar.MoveCharge"), MovementDisplay.MOVE_CHARGE); //$NON-NLS-1$
moveDFA = createMenuItem(submenu, Messages
.getString("CommonMenuBar.MoveDeth"), MovementDisplay.MOVE_DFA); //$NON-NLS-1$
moveRam = createMenuItem(submenu, Messages.getString("CommonMenuBar.moveRam"), MovementDisplay.MOVE_RAM); //$NON-NLS-1$
submenu.addSeparator();
moveFlee = createMenuItem(submenu, Messages
.getString("CommonMenuBar.MoveFlee"), MovementDisplay.MOVE_FLEE); //$NON-NLS-1$
moveEject = createMenuItem(
submenu,
Messages.getString("CommonMenuBar.MoveEject"), MovementDisplay.MOVE_EJECT); //$NON-NLS-1$
submenu.addSeparator();
moveUnjam = createMenuItem(
submenu,
Messages.getString("CommonMenuBar.moveUnjam"), MovementDisplay.MOVE_UNJAM); //$NON-NLS-1$
moveSearchlight = createMenuItem(
submenu,
Messages.getString("CommonMenuBar.moveSearchlight"), MovementDisplay.MOVE_SEARCHLIGHT); //$NON-NLS-1$
moveClear = createMenuItem(
submenu,
Messages.getString("CommonMenuBar.moveClear"), MovementDisplay.MOVE_CLEAR); //$NON-NLS-1$
moveHullDown = createMenuItem(
submenu,
Messages.getString("CommonMenuBar.moveHullDown"), MovementDisplay.MOVE_CLEAR); //$NON-NLS-1$
moveLayMine = createMenuItem(
submenu,
Messages.getString("CommonMenuBar.moveLayMine"), MovementDisplay.MOVE_LAY_MINE); //$NON-NLS-1$
moveDump = createMenuItem(submenu, Messages.getString("CommonMenuBar.moveDump"), MovementDisplay.MOVE_DUMP); //$NON-NLS-1$
submenu.addSeparator();
moveLAMmechMode = createMenuItem(
submenu,
Messages.getString("CommonMenuBar.moveLAMmechMode"), MovementDisplay.MOVE_MODE_MECH); //$NON-NLS-1$
moveLAMairmechMode = createMenuItem(
submenu,
Messages.getString("CommonMenuBar.moveLAMairmechMode"), MovementDisplay.MOVE_MODE_AIRMECH); //$NON-NLS-1$
moveLAMaircraftMode = createMenuItem(
submenu,
Messages.getString("CommonMenuBar.moveLAMaircraftMode"), MovementDisplay.MOVE_MODE_AIRCRAFT); //$NON-NLS-1$
menu.addSeparator();
menu.add(submenu);
// Add the cancel button.
menu.addSeparator();
moveNext = createMenuItem(
menu,
Messages.getString("CommonMenuBar.moveCancel"), MovementDisplay.MOVE_CANCEL, KeyEvent.VK_ESCAPE); //$NON-NLS-1$
// *** Create the fire menu.
menu = new Menu(Messages.getString("CommonMenuBar.FireMenu")); //$NON-NLS-1$
add(menu);
fireFire = createMenuItem(
menu,
Messages.getString("CommonMenuBar.fireFire"), FiringDisplay.FIRE_FIRE, KeyEvent.VK_F); //$NON-NLS-1$
fireSkip = createMenuItem(
menu,
Messages.getString("CommonMenuBar.fireSkip"), FiringDisplay.FIRE_SKIP, KeyEvent.VK_S); //$NON-NLS-1$
fireNextTarg = createMenuItem(
menu,
Messages.getString("CommonMenuBar.fireNextTarg"), FiringDisplay.FIRE_NEXT_TARG, KeyEvent.VK_T); //$NON-NLS-1$
fireNext = createMenuItem(
menu,
Messages.getString("CommonMenuBar.fireNext"), FiringDisplay.FIRE_NEXT, KeyEvent.VK_N); //$NON-NLS-1$
menu.addSeparator();
fireTwist = createMenuItem(menu, Messages
.getString("CommonMenuBar.fireTwist"), FiringDisplay.FIRE_TWIST); //$NON-NLS-1$
fireFlipArms = createMenuItem(
menu,
Messages.getString("CommonMenuBar.fireFlipArms"), FiringDisplay.FIRE_FLIP_ARMS); //$NON-NLS-1$
menu.addSeparator();
fireMode = createMenuItem(
menu,
Messages.getString("CommonMenuBar.fireMode"), FiringDisplay.FIRE_MODE, KeyEvent.VK_O); //$NON-NLS-1$
menu.addSeparator();
fireFindClub = createMenuItem(
menu,
Messages.getString("CommonMenuBar.fireFindClub"), FiringDisplay.FIRE_FIND_CLUB); //$NON-NLS-1$
fireSpot = createMenuItem(menu, Messages
.getString("CommonMenuBar.fireSpot"), FiringDisplay.FIRE_SPOT); //$NON-NLS-1$
fireSearchlight = createMenuItem(
menu,
Messages.getString("CommonMenuBar.fireSearchlight"), FiringDisplay.FIRE_SEARCHLIGHT); //$NON-NLS-1$
fireClearTurret = createMenuItem(
menu,
Messages.getString("CommonMenuBar.fireClearTurret"), FiringDisplay.FIRE_CLEAR_TURRET); //$NON-NLS-1$
fireClearWeaponJam = createMenuItem(
menu,
Messages.getString("CommonMenuBar.fireClearWeaponJam"), FiringDisplay.FIRE_CLEAR_WEAPON); //$NON-NLS-1$
menu.addSeparator();
fireCancel = createMenuItem(
menu,
Messages.getString("CommonMenuBar.fireCancel"), FiringDisplay.FIRE_CANCEL, KeyEvent.VK_ESCAPE); //$NON-NLS-1$
// *** Create the physical menu.
menu = new Menu(Messages.getString("CommonMenuBar.PhysicalMenu")); //$NON-NLS-1$
add(menu);
physicalPunch = createMenuItem(
menu,
Messages.getString("CommonMenuBar.physicalPunch"), PhysicalDisplay.PHYSICAL_PUNCH); //$NON-NLS-1$
physicalKick = createMenuItem(
menu,
Messages.getString("CommonMenuBar.physicalKick"), PhysicalDisplay.PHYSICAL_KICK); //$NON-NLS-1$
physicalPush = createMenuItem(
menu,
Messages.getString("CommonMenuBar.physicalPush"), PhysicalDisplay.PHYSICAL_PUSH); //$NON-NLS-1$
physicalClub = createMenuItem(
menu,
Messages.getString("CommonMenuBar.physicalClub"), PhysicalDisplay.PHYSICAL_CLUB); //$NON-NLS-1$
physicalBrushOff = createMenuItem(
menu,
Messages.getString("CommonMenuBar.physicalBrushOff"), PhysicalDisplay.PHYSICAL_BRUSH_OFF); //$NON-NLS-1$
physicalThrash = createMenuItem(
menu,
Messages.getString("CommonMenuBar.physicalThrash"), PhysicalDisplay.PHYSICAL_THRASH); //$NON-NLS-1$
physicalProto = createMenuItem(
menu,
Messages.getString("CommonMenuBar.physicalProto"), PhysicalDisplay.PHYSICAL_PROTO); //$NON-NLS-1$
physicalDodge = createMenuItem(
menu,
Messages.getString("CommonMenuBar.physicalDodge"), PhysicalDisplay.PHYSICAL_DODGE); //$NON-NLS-1$
physicalVibro = createMenuItem(
menu,
Messages.getString("CommonMenuBar.physicalVibro"), PhysicalDisplay.PHYSICAL_VIBRO); //$NON-NLS-1$
physicalNext = createMenuItem(
menu,
Messages.getString("CommonMenuBar.physicalNext"), PhysicalDisplay.PHYSICAL_NEXT, KeyEvent.VK_N); //$NON-NLS-1$
// *** Create the help menu.
menu = new Menu(Messages.getString("CommonMenuBar.HelpMenu")); //$NON-NLS-1$
setHelpMenu(menu);
item = new MenuItem(Messages.getString("CommonMenuBar.helpContents")); //$NON-NLS-1$
item.addActionListener(this);
item.setActionCommand("helpContents"); //$NON-NLS-1$
menu.add(item);
menu.addSeparator();
item = new MenuItem(Messages.getString("CommonMenuBar.helpAbout")); //$NON-NLS-1$
item.setActionCommand("helpAbout"); //$NON-NLS-1$
item.addActionListener(this);
menu.add(item);
// Now manage the menu items.
manageMenu();
}