Java examples for 2D Graphics:Screen
Getting the Size of the Screen
import java.awt.Dimension; import java.awt.Toolkit; public class Main { public void main(String[] argv) { Dimension dim = Toolkit.getDefaultToolkit().getScreenSize(); }//from w w w . j a v a 2 s . c o m }