Get Screen Working Width - Java java.awt

Java examples for java.awt:Window

Description

Get Screen Working Width

Demo Code


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

public class Main {
    public static int GetScreenWorkingWidth() {
        return getLocalGraphicsEnvironment().getMaximumWindowBounds().width;
    }//from www. j  a v a  2s.com
}

Related Tutorials