String theTitle = this.getTitle();
@Override public void addNotify() { super.addNotify(); this.uninstallListeners(); this.window = SwingUtilities.getWindowAncestor(this); if (this.window != null) { this.setActive(this.window.isActive()); if (this.window instanceof Frame) { this.setState(((Frame) this.window).getExtendedState()); } else { this.setState(0); } if (this.getComponentCount() == 0) { // fix for issue 385 - add the sub-components uninstalled // in the removeNotify. This happens when a decorated // dialog has been disposed and then reshown. this.installSubcomponents(); } this.installListeners(); } this.setToolTipText(this.getTitle()); this.updateAppIcon(); }
String theTitle = this.getTitle();
@Override public void addNotify() { super.addNotify(); this.uninstallListeners(); this.window = SwingUtilities.getWindowAncestor(this); if (this.window != null) { this.setActive(this.window.isActive()); if (this.window instanceof Frame) { this.setState(((Frame) this.window).getExtendedState()); } else { this.setState(0); } if (this.getComponentCount() == 0) { // fix for issue 385 - add the sub-components uninstalled // in the removeNotify. This happens when a decorated // dialog has been disposed and then reshown. this.installSubcomponents(); } this.installListeners(); } this.setToolTipText(this.getTitle()); this.updateAppIcon(); }
/** * Creates a new title pane. * * @param root * Root pane. * @param ui * Root pane UI. */ public SubstanceTitlePane(JRootPane root, SubstanceRootPaneUI ui) { this.rootPane = root; this.rootPaneUI = ui; this.state = -1; this.installSubcomponents(); this.installDefaults(); this.setLayout(this.createLayout()); this.setToolTipText(this.getTitle()); SubstanceLookAndFeel.setDecorationType(this, DecorationAreaType.PRIMARY_TITLE_PANE); this.setForeground(SubstanceColorUtilities .getForegroundColor(SubstanceCoreUtilities.getSkin(this) .getBackgroundColorScheme( DecorationAreaType.PRIMARY_TITLE_PANE))); // SubstanceColorSchemeUtilities // .getColorScheme(this, ComponentState.ACTIVE))); }
/** * Creates a new title pane. * * @param root * Root pane. * @param ui * Root pane UI. */ public SubstanceTitlePane(JRootPane root, SubstanceRootPaneUI ui) { this.rootPane = root; this.rootPaneUI = ui; this.state = -1; this.installSubcomponents(); this.installDefaults(); this.setLayout(this.createLayout()); this.setToolTipText(this.getTitle()); SubstanceLookAndFeel.setDecorationType(this, DecorationAreaType.PRIMARY_TITLE_PANE); this.setForeground(SubstanceColorUtilities .getForegroundColor(SubstanceCoreUtilities.getSkin(this) .getBackgroundColorScheme( DecorationAreaType.PRIMARY_TITLE_PANE))); // SubstanceColorSchemeUtilities // .getColorScheme(this, ComponentState.ACTIVE))); }