Java examples for Swing:Screen
Gets the local monitor's screen bounds.
/*/* w w w .ja v a 2 s . c om*/ * @(#)PortingUtils.java 4/12/2006 * * Copyright 2002 - 2006 JIDE Software Inc. All rights reserved. */ //package com.java2s; import java.awt.*; public class Main { /** * Gets the local monitor's screen bounds. * * @return the screen bounds. */ public static Rectangle getLocalScreenBounds() { GraphicsEnvironment e = GraphicsEnvironment .getLocalGraphicsEnvironment(); return e.getMaximumWindowBounds(); } }