public void setupMenu(){

		edgeDetection = new JMenuItem("Edge Detector");
		angle = new JMenuItem("Determine Angle");
		threshold = new JMenuItem("Threshold");
		topView = new JMenuItem("Add Top View");
		lateralView = new JMenuItem("Add Lateral View");
		frontView = new JMenuItem("Add Front View");
		figureVoxels = new JMenuItem("Figure Voxels");
		help = new JMenuItem("Help");
		about = new JMenuItem("About");
		testAll3D = new JMenuItem("Testing 3D chart");

		//JMenuItem Event Code starts here
		topView.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e)
			{
				int ret = fileChooser.showOpenDialog(null);
				if(ret == JFileChooser.APPROVE_OPTION){
					loadImage(fileChooser.getSelectedFile(), 0);
				}
			}
		});

		lateralView.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e)
			{
				int ret = fileChooser.showOpenDialog(null);
				if(ret == JFileChooser.APPROVE_OPTION){
					loadImage(fileChooser.getSelectedFile(), 1);
				}
			}
		});

		frontView.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				int ret = fileChooser.showOpenDialog(null);
				if (ret == JFileChooser.APPROVE_OPTION) {
					loadImage(fileChooser.getSelectedFile(), 2);
				}
			}
		});

		figureVoxels.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e)
			{
				addAllCoordinates();
				//System.out.println(allCoordinates.size());
				figureVoxels();
				System.out.println("Common Coordinates Size" + commonCoordinates.size());
			}
		});

		threshold.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e)
			{

			}});

		testAll3D.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e)
			{

				System.out.println("Adding All Coordinates...");
				addAllCoordinates();
				t1 = new Thread(new OpenChart(returnCommonCoordinates()));
				System.out.println("Starting Thread");
				t1.start();

				/*
				 * Coord3d[] testy = new Coord3d[30000]; for(int i = 0; i <
				 * testy.length; i++){ testy[i] = new Coord3d(500, i + 60, 30 +
				 * i); } t1 = new Thread(new Testing(testy)); t1.start();
				 */
			}
		});

		getView.add(topView);
		getView.add(lateralView);
		getView.add(frontView);
		fileMenu.add(figureVoxels);
		fileMenu.add(testAll3D);

		//imageMenu.add(edgeDetection);
		imageMenu.add(threshold);
		mathMenu.add(angle);

		helpMenu.add(help);
		helpMenu.add(about);
	}