code: @Override
  	protected void paintComponent(final RenderContext renderContext) {
  		if (getState() == DISPLAY_STATE) {
  			setState(ACTIVE_STATE);
  			showWindow(renderContext);
  		} else if (getState() == ACTIVE_STATE && isTargeted()) {
  			getComponentModel().wrappedContent.paint(renderContext);
  		}
  	}
docs: Override paintComponent in order to paint the window or its content, depending on the window state.
  
  @param renderContext the RenderContext to send the output to.