code: public void setVisible(boolean visible)
  	{
  		if (isVisible() == visible)
  			return;
  
  		if (!fireEvent(new VisibleStateChange<>(this, visible)))
  			return;
  
  		this.visible = visible;
  		if (!visible)
  		{
  			this.setHovered(false);
  			this.setFocused(false);
  		}
  
  		return;
  	}
docs: Sets the visibility of this {@link UIComponent}.
  
  @param visible the visibility for this component