********************************************************************
COMPLETE SOURCE CODE FOR : GetScreenSize.java
********************************************************************
import java.awt.Toolkit;
import java.awt.Dimension;
public class GetScreenSize
{
public static void main(String[]args)
{
Dimension dim=Toolkit.getDefaultToolkit().getScreenSize();
System.out.println("YOUR SCREEN WIDTH : "+dim.width+" PIXELS");
System.out.println("YOUR SCREEN HEIGHT : "+dim.height+" PIXELS");
}
}
********************************************************************
JUST COMPILE AND EXECUTE IT
********************************************************************