/** * 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))); }