JComponent () { DropDownLink<?> dropDownLink = getActivatedOnDropDownLink(); if (dropDownLink != null) { dropDownLink.setForeground(UIUtil.getLabelForeground()); return dropDownLink; } JBLabel label = new JBLabel(getActivatedOnDefaultText()); label.setForeground(UIUtil.getLabelDisabledForeground()); return label; }