_viewFilter = new JMenuItem("Graph Filters");
_viewFilter = new JMenu("Graph Filters");
	private void initComponents() {		// initialize the modules menu		_mods = new JMenu("Import");		_modsClear = new JMenuItem("Clear Graph");		_mods.add(_modsClear);		_mods.add(_separator);		_modsClear.addActionListener(new ActionListener() {			public void actionPerformed(ActionEvent e) {				_modsClearActionPerformed(e);			}		});		// initialize the plugins menu		_plugin = new JMenu("Plugins");		_pluginLoad = new JMenuItem("Plugin Manager");				_plugin.add(_pluginLoad);		_plugin.add(_separator);		_pluginLoad.addActionListener(new ActionListener() {			public void actionPerformed(ActionEvent e) {				_pluginLoadActionPerformed(e);			}		});				// initialize the optimization menu		_optimize = new JMenu("Optimization");		_optimizeStart = new JMenuItem("Start");		_optimizeStop = new JMenuItem("Stop");		_optimizeCenter = new JMenuItem("Center");		_optimizeReset= new JMenuItem("Reset");				_optimize.add(_optimizeStart);		_optimize.add(_optimizeStop);		_optimize.add(_optimizeCenter);		_optimize.add(_optimizeReset);				_optimizeStart.addActionListener(new ActionListener() {			public void actionPerformed(ActionEvent e) {				_optimizeStartActionPerformed(e);			}		});		_optimizeStop.addActionListener(new ActionListener() {			public void actionPerformed(ActionEvent e) {				_optimizeStopActionPerformed(e);			}		});		_optimizeCenter.addActionListener(new ActionListener() {			public void actionPerformed(ActionEvent e) {				_optimizeCenterActionPerformed(e);			}		});		_optimizeReset.addActionListener(new ActionListener() {			public void actionPerformed(ActionEvent e) {				_optimizeResetActionPerformed(e);			}		});				_view = new JMenu("View");		_viewVLabel = new JCheckBoxMenuItem("Labels", _renderbox.getRenderSettings().getBoolean(RenderSettings.SHOW_LABELS));		_viewStress = new JCheckBoxMenuItem("Stress", _renderbox.getRenderSettings().getBoolean(RenderSettings.SHOW_STRESS));		_viewLength = new JCheckBoxMenuItem("Length", _renderbox.getRenderSettings().getBoolean(RenderSettings.SHOW_LENGTH));		_viewVis = new JMenu("Visualization");		_viewFilter = new JMenuItem("Graph Filters");		_viewFilterDegree = new JMenuItem("Degree Filter");		_viewSouthPanel = new JCheckBoxMenuItem("Bottom Control Panel", true);		_viewErrTxt = new JCheckBoxMenuItem("Error Messages", true);		_viewOutTxt = new JCheckBoxMenuItem("Program Output", true);		_view.add(_viewSouthPanel);		_view.add(_viewErrTxt);		_view.add(_viewOutTxt);		_view.add(_separator);		_view.add(_viewVis);		_view.add(_viewFilter);		// visualization submenu		_viewVis.add(_viewVLabel);		_viewVis.add(_viewStress);		_viewVis.add(_viewLength);		// filter submenu		_viewFilter.add(_viewFilterDegree);		_viewFilterDegree.addActionListener(new ActionListener() {			public void actionPerformed(ActionEvent e) {				_viewFilterDegreeActionPerformed(e);							}		});		_viewSouthPanel.addActionListener(new ActionListener() {			public void actionPerformed(ActionEvent e) {				_viewSouthPanelActionPerformed(e);			}		});		_viewVLabel.addItemListener(new ItemListener() {			public void itemStateChanged(ItemEvent e) {				_viewVLabelItemStateChanged(e);			}		});		_viewStress.addItemListener(new ItemListener() {			public void itemStateChanged(ItemEvent e) {				_viewStressItemStateChanged(e);			}		});		_viewLength.addItemListener(new ItemListener() {			public void itemStateChanged(ItemEvent e) {				_viewLengthItemStateChanged(e);			}		});		_viewErrTxt.addItemListener(new ItemListener() {			public void itemStateChanged(ItemEvent e) {				_viewErrTxtItemStateChanged(e);			}		});		_viewOutTxt.addItemListener(new ItemListener() {			public void itemStateChanged(ItemEvent e) {				_viewOutTxtItemStateChanged(e);			}		});				// initialize settings menu		_settings = new JMenu("Settings");		_settingsAntialias = new JCheckBoxMenuItem("Antialias", _renderbox.getRenderSettings().getBoolean(RenderSettings.ANTIALIAS));				_settings.add(_settingsAntialias);		_settingsAntialias.addItemListener(new ItemListener() {			public void itemStateChanged(ItemEvent e) {				_settingsAntialiasItemStateChanged(e);			}		});	}