Example usage for java.awt Insets equals

List of usage examples for java.awt Insets equals

Introduction

In this page you can find the example usage for java.awt Insets equals.

Prototype

public boolean equals(Object obj) 

Source Link

Document

Checks whether two insets objects are equal.

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;
        }/* w ww  .  ja  va  2  s  .  co  m*/
    } else if (insets.equals(screenInsets)) {
        return false;
    }
    screenInsets = insets;
    return true;
}