Example usage for javax.swing JRootPane getClientProperty

List of usage examples for javax.swing JRootPane getClientProperty

Introduction

In this page you can find the example usage for javax.swing JRootPane getClientProperty.

Prototype

public final Object getClientProperty(Object key) 

Source Link

Document

Returns the value of the property with the specified key.

Usage

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;
    }
}