get Screen Size - Java Swing

Java examples for Swing:Screen

Description

get Screen Size

Demo Code


//package com.java2s;
import java.awt.Dimension;
import java.awt.Toolkit;

public class Main {
    public static Dimension getScreenSize() {
        return Toolkit.getDefaultToolkit().getScreenSize();
    }//from ww w.  j  a v  a  2 s .c  om
}

Related Tutorials