@Override
	public void propertyChange( PropertyChangeEvent e ) {
		switch( e.getPropertyName() ) {
			case "ancestor":
				if( e.getNewValue() != null )
					addNotify();
				else
					removeNotify();
				break;

			case "resizable":
				updateVisibility();
				break;
		}
	}
Resizes frames, dialogs or internal frames.
<p>
Could also be used to implement resize support for any Swing component
by creating a new subclass.

@author Karl Tauber
flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatWindowResizer.java