public InteractivePanel(){
		addMouseListener(new MouseAdapter() {
			@Override
			public void mousePressed(MouseEvent e) {
				if(e.getButton()!=MouseEvent.BUTTON1)
					return;
				double x = e.getXOnScreen();
				double y = e.getYOnScreen();
				Graphics g = getGraphics();
				for(SUIComponent comp : components){
					if(comp.isLocationInside(g, x, y)){
						if(comp instanceof SUIGrid)
							handleLeftClick(e.getX(), e.getY(), comp);
						else if(comp instanceof SUIList)
							((SUIList)comp).click(g, x, y, e.getX(), e.getY());
						else
							handleLeftClick(x, y, comp);
						return;
					}
				}
				handleLeftClick(e.getX(), e.getY(), null);
			}
		});
	}