fpsComponent.setVisible(visible);
fpsMI.setSelected(visible);
}
public FrameRateListener addFrameRateListener(int frameRate) {
FrameRateListener listener = new FrameRateListener() {
public void currentFramerate(float fps) {
if (chart != null) {
chart.setValue(fps);
}