get Screen Height - Java Swing

Java examples for Swing:Screen

Description

get Screen Height

Demo Code


//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*/
}

Related Tutorials