protected void onPaint(Graphics g) { frameRate.calculate(); g.setColor(Color.BLACK); g.drawString(frameRate.getFrameRate(), 30, 30); repaint(); }