myGraphics.translate(visRect.x, visRect.y); fpsCounter.updateFPSCounter(myGraphics);
if (frameRate) { myGraphics.translate(visRect.x, visRect.y); fpsCounter.updateFPSCounter(myGraphics); }
	protected void paintComponent(java.awt.Graphics g) {	    /*	     * Swing Javadoc states that we shouldn't leave the Graphics	     * context in an altered state, so we make a copy here instead	     */	    Graphics myGraphics = g.create();	    paintStats.enter();	    super.paintComponent(myGraphics);	    if (null != mapCursor) {		mapCursor.cursorRenderer.paintCursor(myGraphics,			new java.awt.Dimension(30, 30));	    }	    Rectangle visRect = this.getVisibleRect();	    if (System.currentTimeMillis() < this.displayMessageUntil) {		myGraphics.setColor(Color.WHITE);		myGraphics.setFont(USER_MESSAGE_FONT);		for (int i = 0 ; i < userMessage.length ; i++){		    myGraphics.drawString(this.userMessage[i], 50+visRect.x,			    50+visRect.y+i*20);		}	    }	    paintStats.exit();	    myGraphics.translate(visRect.x, visRect.y);	    fpsCounter.updateFPSCounter(myGraphics);	    /* dispose of the graphics context */		    myGraphics.dispose();	}