@Override
		public void mouseClicked(MouseEvent e) {
			try {
				MapObject obj = new MapObject();
				obj.sprite = ImageIO.read(this.getClass().getResource(filepath.getText()));
				obj.x = (int) xCell.getValue();
				obj.y = (int) yCell.getValue();
				panel.objects.add(obj);
				panel.repaint();
			} catch (IOException ex) {
				ex.printStackTrace();
			}
		}