Example usage for java.awt Window getToolkit

List of usage examples for java.awt Window getToolkit

Introduction

In this page you can find the example usage for java.awt Window getToolkit.

Prototype

public Toolkit getToolkit() 

Source Link

Document

Returns the toolkit of this frame.

Usage

From source file:net.pms.newgui.components.WindowProperties.java

private boolean updateScreenInsets(@Nonnull Window eventWindow) {
    Insets insets = eventWindow.getToolkit().getScreenInsets(eventWindow.getGraphicsConfiguration());
    if (insets == null) {
        if (screenInsets == null) {
            return false;
        }//from   w  w  w. j  av  a 2 s .  c  o m
    } else if (insets.equals(screenInsets)) {
        return false;
    }
    screenInsets = insets;
    return true;
}