private void removeParentPropertyChangeListener ( PropertyChangeListener listener ) { if ( rootParent instanceof JFrame ) { ( ( JFrame ) rootParent ) . removePropertyChangeListener ( listener ) ; } else if ( rootParent instanceof JDialog ) { ( ( JDialog ) rootParent ) . removePropertyChangeListener ( listener ) ; } }
Remove the property change listener from the root pane .