JComponent (@NlsContexts.ListItem String text, @NlsContexts.Tooltip String tooltip, Icon icon, Icon disabledIcon, boolean isSelected, boolean hasSeparatorAbove, @NlsContexts.Separator String separatorTextAbove, int preferredForcedWidth) { mySeparatorComponent.setVisible(hasSeparatorAbove); mySeparatorComponent.setCaption(separatorTextAbove); mySeparatorComponent.setMinimumWidth(preferredForcedWidth); myTextLabel.setText(text); myRendererComponent.setToolTipText(tooltip); AccessibleContextUtil.setName(myRendererComponent, myTextLabel); AccessibleContextUtil.setDescription(myRendererComponent, myTextLabel); setComponentIcon(icon, disabledIcon); updateSelection(isSelected, myComponent, myTextLabel); myRendererComponent.setPreferredWidth(preferredForcedWidth); updateScaleHelper.saveScaleAndUpdateUIIfChanged(myRendererComponent); return myRendererComponent; }