/**
* Uninstalls <code>this</code> title pane.
*/
public void uninstall() {
if ((this.menuBar != null) && (this.menuBar.getMenuCount() > 0)) {
MenuBarUI menuBarUI = this.menuBar.getUI();
if (menuBarUI instanceof SubstanceMenuBarUI) {
SubstanceMenuBarUI ui = (SubstanceMenuBarUI) menuBarUI;
if (ui.getMenuBar() == this.menuBar)
menuBarUI.uninstallUI(this.menuBar);
}
SubstanceCoreUtilities.uninstallMenu(this.menuBar.getMenu(0));
this.remove(menuBar);
// fix for issue 362 - remove the buttons so that we don't
// have duplicate buttons on internal frames in reparented