List of usage examples for javax.swing JRootPane getClientProperty
public final Object getClientProperty(Object key)
From source file:Main.java
public static Boolean isFrameModified(RootPaneContainer frame) { synchronized (frame) { JRootPane rootPane = frame.getRootPane(); Object obj = rootPane.getClientProperty(WINDOW_MODIFIED); if (obj == null || !(obj instanceof Boolean)) { return Boolean.FALSE; }//from w ww . ja v a 2 s . co m return (Boolean) obj; } }