void () { myFps.set(0); myFrameCount.set(0); myStartMeasureTime.set(0); myMeasureDuration.set(0); if (myHelper != null) myHelper.reset(); Component comp = getComponent(); myFont.set(JBFont.create(new Font("Sans", Font.BOLD, 16))); comp.getFontMetrics(myFont.get()); Rectangle strBounds = myFont.get().getStringBounds("00 fps", comp.getFontMetrics(myFont.get()).getFontRenderContext()).getBounds(); myFpsBarBounds.get().setBounds(0, 0, strBounds.width + FPS_STR_OFFSET * 2, strBounds.height + FPS_STR_OFFSET * 2); }