Get Screen Working Height - Java java.awt

Java examples for java.awt:Window

Description

Get Screen Working Height

Demo Code


//package com.java2s;
import static java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment;

public class Main {
    public static int GetScreenWorkingHeight() {
        return getLocalGraphicsEnvironment().getMaximumWindowBounds().height;
    }/*from  w  ww.  ja va  2  s .  c  o m*/
}

Related Tutorials