Java examples for Swing:Screen
get Screen Height
//package com.java2s; import java.awt.GraphicsEnvironment; public class Main { public static int getScreenHeigh() { int y = GraphicsEnvironment.getLocalGraphicsEnvironment() .getDefaultScreenDevice().getDisplayMode().getHeight(); return y; }/*from w w w . jav a 2 s . c om*/ }