code: @Override
  	protected void preparePaintComponent(final Request request) {
  		super.preparePaintComponent(request);
  
  		// Check if window in request (might not have gone through handle request, eg Step error)
  		boolean targeted = isPresent(request);
  		setTargeted(targeted);
  
  		if (getState() == ACTIVE_STATE && isTargeted()) {
  			getComponentModel().wrappedContent.preparePaint(request);
  		}
  	}
docs: Override preparePaintComponent to clear the scratch map before the window content is being painted.
  
  @param request the request being responded to.