Java examples for Swing:Screen
get Screen Size
//package com.java2s; import java.awt.Dimension; import java.awt.Toolkit; public class Main { public static Dimension getScreenSize() { return Toolkit.getDefaultToolkit().getScreenSize(); }//from ww w. j a v a 2 s .c om }