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(); }
/* * (non-Javadoc) * * @see javax.swing.JComponent#addNotify() */ @Override public void addNotify() { super.addNotify(); if (Boolean.TRUE.equals(this.getClientProperty(UNINSTALLED))) { this.installTitlePane(); // this.installListeners(); this.putClientProperty(UNINSTALLED, null); } }