public void addNotify() {
   super.addNotify();
   // This is done here instead of in installDefaults as I was worried
   // that the BasicInternalFrameUI might not be fully initialized, and
   // that if this resets the closable state the BasicInternalFrameUI
   // Listeners that get notified might be in an odd/uninitialized state.
   updateOptionPaneState();
 }