418 |
{ |
{ |
419 |
super.setBackground(getBackgroundSelectionColor()); |
super.setBackground(getBackgroundSelectionColor()); |
420 |
setForeground(getTextSelectionColor()); |
setForeground(getTextSelectionColor()); |
421 |
setBorderSelectionColor(UIManager.getLookAndFeelDefaults().getColor( |
|
422 |
"Tree.selectionBorderColor")); |
if (tree.getLeadSelectionPath() == null || |
423 |
|
(tree.getLeadSelectionPath().getLastPathComponent()).equals(val)) |
424 |
|
setBorderSelectionColor(UIManager.getLookAndFeelDefaults(). |
425 |
|
getColor("Tree.selectionBorderColor")); |
426 |
|
else |
427 |
|
setBorderSelectionColor(null); |
428 |
} |
} |
429 |
else |
else |
430 |
{ |
{ |