|
@@ -135,16 +135,6 @@ public class TreeViewTreeCellRenderer extends JLabel implements
|
135
|
135
|
|
136
|
136
|
final Object nodeObject = node.getUserObject();
|
137
|
137
|
|
138
|
|
- if (nodeObject.equals(manager.getSelected())) {
|
139
|
|
- if (activeBold) {
|
140
|
|
- setFont(getFont().deriveFont(Font.BOLD));
|
141
|
|
- }
|
142
|
|
- setBackground(activeBackground);
|
143
|
|
- setForeground(activeForeground);
|
144
|
|
- } else {
|
145
|
|
- setFont(getFont().deriveFont(Font.PLAIN));
|
146
|
|
- }
|
147
|
|
-
|
148
|
138
|
if (nodeObject instanceof FrameContainer) {
|
149
|
139
|
final Color colour =
|
150
|
140
|
manager.getNodeColour((FrameContainer) nodeObject);
|
|
@@ -156,6 +146,16 @@ public class TreeViewTreeCellRenderer extends JLabel implements
|
156
|
146
|
setIcon(defaultIcon);
|
157
|
147
|
}
|
158
|
148
|
|
|
149
|
+ if (nodeObject.equals(manager.getSelected())) {
|
|
150
|
+ if (activeBold) {
|
|
151
|
+ setFont(getFont().deriveFont(Font.BOLD));
|
|
152
|
+ }
|
|
153
|
+ setBackground(activeBackground);
|
|
154
|
+ setForeground(activeForeground);
|
|
155
|
+ } else {
|
|
156
|
+ setFont(getFont().deriveFont(Font.PLAIN));
|
|
157
|
+ }
|
|
158
|
+
|
159
|
159
|
return this;
|
160
|
160
|
}
|
161
|
161
|
|