Current refresh rate


*****************************************************************
COMPLETE SOURCE CODE FOR : RefreshRateForCurrentScreen.java
*****************************************************************


import java.awt.GraphicsEnvironment;
import java.awt.GraphicsDevice;
import java.awt.DisplayMode;

public class RefreshRateForCurrentScreen
{
public static void main(String[]args)
{
GraphicsEnvironment ge=GraphicsEnvironment.getLocalGraphicsEnvironment();
GraphicsDevice gd=ge.getDefaultScreenDevice();
DisplayMode dm=gd.getDisplayMode();

//Print refresh rate for current screen
System.out.println("REFRESH RATE FOR CURRENT SCREEN : "+dm.getRefreshRate());
}
}


*****************************************************************
JUST COMPILE AND EXECUTE IT
*****************************************************************