Java Screen Size getLocalScreenBounds()

Here you can find the source of getLocalScreenBounds()

Description

Gets the local monitor's screen bounds.

License

Open Source License

Return

the screen bounds.

Declaration

public static Rectangle getLocalScreenBounds() 

Method Source Code


//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();
    }
}

Related

  1. getDefaultScreenDevice()
  2. getDefaultScreenSize()
  3. getDefaultScreenSizeWithoutAdjustment()
  4. getDesktopBounds()
  5. getDesktopBounds()
  6. getLocationFromMouse(Dimension panelPrefSize_)
  7. getMaximumWindowBounds()
  8. getMaximumWindowBounds()
  9. getMaximumWindowWidth()