// Create the View menu.
viewMenu = new JMenu("View");
viewMenu.setMnemonic(KeyEvent.VK_V);
ButtonGroup screenGroup = new ButtonGroup();
JRadioButtonMenuItem visualMenuItem = new JRadioButtonMenuItem(MenuOption.VISUAL.getDisplayValue());
screenGroup.add(visualMenuItem);
visualMenuItem.setSelected(true);
JRadioButtonMenuItem priorityMenuItem = new JRadioButtonMenuItem(MenuOption.PRIORITY.getDisplayValue());
priorityMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_TAB, 0));
screenGroup.add(priorityMenuItem);
backgroundMenuItem = new JCheckBoxMenuItem(MenuOption.BACKGROUND.getDisplayValue());
backgroundMenuItem.setMnemonic(KeyEvent.VK_G);
backgroundMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_F6, 0));
backgroundMenuItem.setSelected(editStatus.isBackgroundEnabled());
bandsMenuItem = new JCheckBoxMenuItem(MenuOption.BANDS.getDisplayValue());
bandsMenuItem.setMnemonic(KeyEvent.VK_B);
bandsMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_B, acceleratorKey));
bandsMenuItem.setSelected(editStatus.isBandsOn());
dualModeMenuItem = new JCheckBoxMenuItem(MenuOption.DUAL_MODE.getDisplayValue());
dualModeMenuItem.setMnemonic(KeyEvent.VK_D);
dualModeMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_D, acceleratorKey));
dualModeMenuItem.setSelected(editStatus.isDualModeEnabled());
egoTestMenuItem = new JCheckBoxMenuItem(MenuOption.EGO_TEST.getDisplayValue());
egoTestMenuItem.setMnemonic(KeyEvent.VK_E);
egoTestMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_E, acceleratorKey));
ButtonGroup fillGroup = new ButtonGroup();
JRadioButtonMenuItem normalFillMenuItem = new JRadioButtonMenuItem(MenuOption.NORMAL_FILL.getDisplayValue());
fillGroup.add(normalFillMenuItem);
normalFillMenuItem.setSelected(true);
JRadioButtonMenuItem transparentFillMenuItem = new JRadioButtonMenuItem(MenuOption.TRANSPARENT_FILL.getDisplayValue());
fillGroup.add(transparentFillMenuItem);
JRadioButtonMenuItem noFillMenuItem = new JRadioButtonMenuItem(MenuOption.NO_FILL.getDisplayValue());
fillGroup.add(noFillMenuItem);
JMenuItem zoomInMenuItem = new JMenuItem(MenuOption.ZOOM_IN.getDisplayValue());
zoomInMenuItem.setAccelerator(KeyStroke.getKeyStroke('+'));
JMenuItem zoomOutMenuItem = new JMenuItem(MenuOption.ZOOM_OUT.getDisplayValue());
zoomOutMenuItem.setAccelerator(KeyStroke.getKeyStroke('-'));
JMenuItem zoomx1MenuItem = new JMenuItem(MenuOption.ZOOM_X1.getDisplayValue());
JMenuItem zoomx2MenuItem = new JMenuItem(MenuOption.ZOOM_X2.getDisplayValue());
JMenuItem zoomx3MenuItem = new JMenuItem(MenuOption.ZOOM_X3.getDisplayValue());
JMenuItem zoomx4MenuItem = new JMenuItem(MenuOption.ZOOM_X4.getDisplayValue());
JMenuItem zoomx5MenuItem = new JMenuItem(MenuOption.ZOOM_X5.getDisplayValue());
backgroundMenuItem.addActionListener(this);
visualMenuItem.addActionListener(this);
priorityMenuItem.addActionListener(this);
bandsMenuItem.addActionListener(this);
dualModeMenuItem.addActionListener(this);
egoTestMenuItem.addActionListener(this);
normalFillMenuItem.addActionListener(this);
transparentFillMenuItem.addActionListener(this);
noFillMenuItem.addActionListener(this);
zoomInMenuItem.addActionListener(this);
zoomOutMenuItem.addActionListener(this);
zoomx1MenuItem.addActionListener(this);
zoomx2MenuItem.addActionListener(this);
zoomx3MenuItem.addActionListener(this);