get Screen Insets - Java Swing

Java examples for Swing:Screen

Description

get Screen Insets

Demo Code


//package com.java2s;
import java.awt.Frame;
import java.awt.Insets;
import java.awt.Toolkit;

public class Main {
    public static Insets getScreenInsets() {
        Insets si = Toolkit.getDefaultToolkit().getScreenInsets(
                new Frame().getGraphicsConfiguration());
        return si;
    }/* w w w .  jav  a 2s  .  c o  m*/
}

Related Tutorials