private void createMenuBar() {
		JMenuBar menuBar = new JMenuBar();
		JMenu menuCommand = new JMenu("Options");
	
		JMenu mnGridlet = new JMenu("Gridlet");
		JCheckBoxMenuItem miShowGridID = new JCheckBoxMenuItem("Show ID");
		miShowGridID.setSelected(true);
		mnGridlet.add(miShowGridID);
		
		miShowGridID.addItemListener(new ItemListener(){
			public void itemStateChanged(ItemEvent e){
				if (e.getStateChange() == ItemEvent.DESELECTED){
					drawID_ = false;
				}
				else if (e.getStateChange() == ItemEvent.SELECTED){
					drawID_ = true;
				}
				pnGraph.repaint();
			}
		});
		
		menuCommand.add(mnGridlet);
		
		JMenu mnTime = new JMenu("Time Unit");
		btSecond = new JRadioButtonMenuItem("Second");
		btSecond.setActionCommand("time_second");
		btSecond.setSelected(true);

		btMinute = new JRadioButtonMenuItem("Minute");
		btMinute.setActionCommand("time_minutes");
	    
		btHour = new JRadioButtonMenuItem("Hour");
		btHour.setActionCommand("time_hour");

		ButtonGroup timeButtonGroup = new ButtonGroup();
		timeButtonGroup.add(btSecond);
		timeButtonGroup.add(btMinute);
		timeButtonGroup.add(btHour);
		
		btSecond.addActionListener(this);
		btMinute.addActionListener(this);
		btHour.addActionListener(this);
		
		mnTime.add(btSecond);
		mnTime.add(btMinute);
		mnTime.add(btHour);
		
		menuCommand.add(mnTime);
		
		JMenu mnScroll = new JMenu("Scrolling");

		JCheckBoxMenuItem miAutoScroll = new JCheckBoxMenuItem("Auto Scroll to End of Queue");
		miAutoScroll.setSelected(true);
		mnScroll.add(miAutoScroll);
		
		miAutoScroll.addItemListener(new ItemListener(){
			public void itemStateChanged(ItemEvent e){
				if (e.getStateChange() == ItemEvent.DESELECTED){
					autoScroll_ = false;
				}
				else if (e.getStateChange() == ItemEvent.SELECTED){
					autoScroll_ = true;
				}
				updateResourceWindow();
			}
		});
		
		menuCommand.add(mnScroll);
		
		JMenu mnAnimation = new JMenu("Animation");
		JCheckBoxMenuItem miAnimation = new JCheckBoxMenuItem("Animate this Window");
		miAnimation.setSelected(true);
		mnAnimation.add(miAnimation);
		
		miAnimation.addItemListener(new ItemListener(){
			public void itemStateChanged(ItemEvent e){
				if (e.getStateChange() == ItemEvent.DESELECTED){
					animate_ = false;
				}
				else if (e.getStateChange() == ItemEvent.SELECTED){
					animate_ = true;
				}
				updateResourceWindow();
			}
		});
		
		menuCommand.add(mnAnimation);
		
		JMenu mnPartition = new JMenu("Partitions");
		JCheckBoxMenuItem miPartition = new JCheckBoxMenuItem("Show Partition Informations");
		miPartition.setSelected(false);
		mnPartition.add(miPartition);
		
		miPartition.addItemListener(new ItemListener(){
			public void itemStateChanged(ItemEvent e){
				if (e.getStateChange() == ItemEvent.DESELECTED){
					showPartition_ = false;
				}
				else if (e.getStateChange() == ItemEvent.SELECTED){
					showPartition_ = true;
				}
				updateResourceWindow();
			}
		});
		
		menuCommand.add(mnPartition);
		
		menuBar.add(menuCommand);
		setJMenuBar(menuBar);
	}