Java tutorial
//package com.java2s; import java.awt.*; public class Main { static Rectangle getScreenBounds(final GraphicsDevice screenDevice) { return screenDevice.getDefaultConfiguration().getBounds(); } }