Here you can find the source of getLocalScreenBounds()
public static Rectangle getLocalScreenBounds()
//package com.java2s; import java.awt.*; public class Main { /**//w w w .jav a 2 s . c om * Gets the local monitor's screen bounds. * * @return the screen bounds. */ public static Rectangle getLocalScreenBounds() { GraphicsEnvironment e = GraphicsEnvironment.getLocalGraphicsEnvironment(); return e.getMaximumWindowBounds(); } }