components/visual-panels/usermgr/src/java/vpanels/app/usermgr/com/oracle/solaris/vp/panels/usermgr/client/swing/GroupsPanel.java
equal
deleted
inserted
replaced
311 setText(node.toString()); |
311 setText(node.toString()); |
312 |
312 |
313 } else if (node.getUserObject() instanceof GroupTreeNode) { |
313 } else if (node.getUserObject() instanceof GroupTreeNode) { |
314 GroupTreeNode groupsdef = (GroupTreeNode) node.getUserObject(); |
314 GroupTreeNode groupsdef = (GroupTreeNode) node.getUserObject(); |
315 setText(groupsdef.toString()); |
315 setText(groupsdef.toString()); |
316 |
|
317 if (selected) { |
|
318 if (node.isEnabled()) { |
|
319 cr.setTextSelectionColor(SystemColor.textText); |
|
320 } else { |
|
321 cr.setTextSelectionColor( |
|
322 SystemColor.inactiveCaptionText); |
|
323 } |
|
324 |
|
325 } else { |
|
326 if (node.isEnabled()) { |
|
327 cr.setTextNonSelectionColor(SystemColor.textText); |
|
328 } else { |
|
329 |
|
330 cr.setTextNonSelectionColor( |
|
331 SystemColor.inactiveCaptionText); |
|
332 } |
|
333 } |
|
334 } |
316 } |
335 |
317 |
336 super.getTreeCellRendererComponent(tree, value, selected, expanded, |
318 super.getTreeCellRendererComponent(tree, value, selected, expanded, |
337 leaf, row, hasFocus); |
319 leaf, row, hasFocus); |
338 |
320 |