public boolean inBounds(MouseEvent e){
  return e.getX() > x && e.getX() < x + width && e.getY() > y && e.getY() < y + height;
}

public boolean inBounds ( MouseEvent e ) { return e . getX ( ) > x && e . getX ( ) < x + width && e . getY ( ) > y && e . getY ( ) < y + height ; }
does a check for whether or not the mouse exists within the bounds of the button .
