|
|
|
@ -376,7 +376,6 @@ public abstract class JListControlPane extends JControlPane implements ListContr
|
|
|
|
|
Nameable nameable = element.wrapper; |
|
|
|
|
this.textLabel.setText(nameable.getName()); |
|
|
|
|
boolean iconSet = false; |
|
|
|
|
for (NameableCreator creator : JListControlPane.this.creators()) { |
|
|
|
|
if(isSelected) { |
|
|
|
|
this.textLabel.setBackground(selectedBgColor); |
|
|
|
|
this.textLabel.setForeground(Color.WHITE); |
|
|
|
@ -384,6 +383,7 @@ public abstract class JListControlPane extends JControlPane implements ListContr
|
|
|
|
|
this.textLabel.setBackground(Color.WHITE); |
|
|
|
|
this.textLabel.setForeground(Color.BLACK); |
|
|
|
|
} |
|
|
|
|
for (NameableCreator creator : JListControlPane.this.creators()) { |
|
|
|
|
if (creator.menuIcon() != null && creator.acceptObject2Populate(nameable) != null) { |
|
|
|
|
this.iconLabel.setIcon(creator.menuIcon()); |
|
|
|
|
this.setToolTipText(creator.createTooltip()); |
|
|
|
|