public void propertyChange(PropertyChangeEvent evt) {
        if (evt.getSource() == this) {

            if (SeaGlassLookAndFeel.shouldUpdateStyle(evt)) {
                updateStyle(this);
            }
        } else {

            // Changes for the internal frame
            if (evt.getPropertyName() == JInternalFrame.FRAME_ICON_PROPERTY) {
                updateMenuIcon();
            }
        }

        // Basic (from Handler inner class)
        String prop = (String) evt.getPropertyName();

        if (prop == JInternalFrame.IS_SELECTED_PROPERTY) {
            repaint();

            return;
        }

        if (prop == JInternalFrame.IS_ICON_PROPERTY || prop == JInternalFrame.IS_MAXIMUM_PROPERTY) {
            setButtonTooltips();
            enableActions();

            return;
        }

        if ("closable" == prop) {

            if ((Boolean) evt.getNewValue() == Boolean.TRUE) {
                add(closeButton);
            } else {
                remove(closeButton);
            }
        } else if ("maximizable" == prop) {

            if ((Boolean) evt.getNewValue() == Boolean.TRUE) {
                add(maxButton);
            } else {
                remove(maxButton);
            }
        } else if ("iconable" == prop) {

            if ((Boolean) evt.getNewValue() == Boolean.TRUE) {
                add(iconButton);
            } else {
                remove(iconButton);
            }
        }

        enableActions();

        revalidate();
        repaint();
    }
public void propertyChange ( PropertyChangeEvent evt ) { if ( evt . getSource ( ) == this ) { if ( SeaGlassLookAndFeel . shouldUpdateStyle ( evt ) ) { updateStyle ( this ) ; } } else { if ( evt . getPropertyName ( ) == JInternalFrame . FRAME_ICON_PROPERTY ) { updateMenuIcon ( ) ; } } String prop = ( String ) evt . getPropertyName ( ) ; if ( prop == JInternalFrame . IS_SELECTED_PROPERTY ) { repaint ( ) ; return ; } if ( prop == JInternalFrame . IS_ICON_PROPERTY || prop == JInternalFrame . IS_MAXIMUM_PROPERTY ) { setButtonTooltips ( ) ; enableActions ( ) ; return ; } if ( "closable" == prop ) { if ( ( Boolean ) evt . getNewValue ( ) == Boolean . TRUE ) { add ( closeButton ) ; } else { remove ( closeButton ) ; } } else if ( "maximizable" == prop ) { if ( ( Boolean ) evt . getNewValue ( ) == Boolean . TRUE ) { add ( maxButton ) ; } else { remove ( maxButton ) ; } } else if ( "iconable" == prop ) { if ( ( Boolean ) evt . getNewValue ( ) == Boolean . TRUE ) { add ( iconButton ) ; } else { remove ( iconButton ) ; } } enableActions ( ) ; revalidate ( ) ; repaint ( ) ; }
@see java.beans.PropertyChangeListener#propertyChange(java.beans.PropertyChangeEvent)