code: public void mouseReleased(int button, int x, int y) {
  		setFocus(Rectangle.contains(x, y, getX(), getY(), getWidth(),
  				getHeight()));
  	}
docs: Gives the focus to this component with a click of the mouse.
  
  @see org.newdawn.slick.gui.AbstractComponent#mouseReleased(int, int, int)