List of usage examples for java.awt Window getToolkit
public Toolkit getToolkit()
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; }