Java examples for Swing:Screen
get Screen Insets
//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*/ }