get Screen Working Width - Java Swing

Java examples for Swing:Screen

Description

get Screen Working Width

Demo Code


//package com.java2s;

public class Main {
    public static int getScreenWorkingWidth() {
        return java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment()
                .getMaximumWindowBounds().width;
    }/*from   ww  w .  j a  va2s . com*/
}

Related Tutorials