public void addNewTable() {
		Point mouse = MouseInfo.getPointerInfo().getLocation();
		JViewport viewport = ((JViewport) getParent());
		SwingUtilities.convertPointFromScreen(mouse, viewport);
		Rectangle visible = viewport.getViewRect();
		Table toAdd = null;
		
		mouse.x += visible.x;
		mouse.y += visible.y;
		
		int x;
		int y;
		
		if(visible.contains(mouse)) {	
			x = mouse.x - Constants.TABLE_WIDTH / 2;
			y = mouse.y - Constants.TABLE_HEIGHT / 2;
			
			toAdd = new Table(null, x, y, Constants.TABLE_WIDTH, Constants.TABLE_HEIGHT);
		} else {
			x = visible.x + visible.width / 2 - Constants.TABLE_WIDTH / 2;
			y = visible.y + visible.height / 2 - Constants.TABLE_HEIGHT / 2;
			
			toAdd = new Table(null, x, y, Constants.TABLE_WIDTH, Constants.TABLE_HEIGHT);
		}
		
		if(toAdd != null) {
			tables.add(toAdd);
			selected.clear();
			selected.add(toAdd);
			info.update();
			
			System.out.println("Successfully added " + toAdd.toString());
		}
	}