@SuppressWarnings("serial")
	private void init() {
		frame = new JFrame() {{
			setTitle("Part Database");
			setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
			setBounds(SCREEN_WIDTH / 4, SCREEN_HEIGHT / 4, SCREEN_WIDTH / 2, SCREEN_HEIGHT / 2);
		}};
		
		toolBar = new JMenuBar();
			partDatabaseMenu = new JMenu("Database");
				about = new JMenuItem("About");
				about.addActionListener(this);
				about.setActionCommand("about");
				close = new JMenuItem("Exit");
				close.addActionListener(this);
				close.setActionCommand("exit");
			partDatabaseMenu.add(about);
			partDatabaseMenu.add(close);
			fileMenu = new JMenu("File");
				openData = new JMenuItem("Open Database");
				openData.addActionListener(this);
				openData.setActionCommand("open");
				saveData = new JMenuItem("Save Database");
				saveData.addActionListener(this);
				saveData.setActionCommand("save");
				newData = new JMenuItem("New Database");
				newData.addActionListener(this);
				newData.setActionCommand("new");
			fileMenu.add(openData);
			fileMenu.add(saveData);
			fileMenu.add(newData);
			partMenu = new JMenu("Part");
				addPart = new JMenuItem("Add Part");
				addPart.addActionListener(this);
				addPart.setActionCommand("add_part");
				removePart = new JMenuItem("Delete Part");
				removePart.addActionListener(this);
				removePart.setActionCommand("remove_part");
				editPart = new JMenuItem("Edit Part");
				editPart.addActionListener(this);
				editPart.setActionCommand("edit_part");
				checkoutPart = new JMenuItem("Checkout/Return");
				checkoutPart.addActionListener(this);
				checkoutPart.setActionCommand("checkout");
				addManyParts = new JMenuItem("Add Many Parts");
				addManyParts.addActionListener(this);
				addManyParts.setActionCommand("addMany");
			partMenu.add(addPart);
			partMenu.add(removePart);
			partMenu.add(editPart);
			partMenu.add(checkoutPart);
			partMenu.add(addManyParts);
		toolBar.add(partDatabaseMenu);
		toolBar.add(fileMenu);
		toolBar.add(partMenu);
			searchBar = new JTextField();
		toolBar.add(new JSeparator());
		toolBar.add(new JLabel("Filter: "));
		toolBar.add(searchBar);
		
		updateTable();

		frame.setJMenuBar(toolBar);
				
		frame.setVisible(true);
		frame.setIconImage(getImage("res/table.jpg"));
		
		SaveManager.init("Parts.db");
		
		SaveManager.openFile(SaveManager.file);
		frame.repaint();
		updateTable();
		//Location l = Location.valueOf("Motor Bin");
		
		filterString = "";

	}