Author: pwang
Date: 2012-05-16 17:12:16 -0700 (Wed, 16 May 2012)
New Revision: 29283

Modified:
   
core3/impl/trunk/swing-application-impl/src/main/java/org/cytoscape/internal/view/TreeCellRenderer.java
Log:
Fixed bug#943

Modified: 
core3/impl/trunk/swing-application-impl/src/main/java/org/cytoscape/internal/view/TreeCellRenderer.java
===================================================================
--- 
core3/impl/trunk/swing-application-impl/src/main/java/org/cytoscape/internal/view/TreeCellRenderer.java
     2012-05-17 00:00:35 UTC (rev 29282)
+++ 
core3/impl/trunk/swing-application-impl/src/main/java/org/cytoscape/internal/view/TreeCellRenderer.java
     2012-05-17 00:12:16 UTC (rev 29283)
@@ -1,5 +1,6 @@
 package org.cytoscape.internal.view;
 
+import java.awt.Color;
 import java.awt.Component;
 import java.awt.Dimension;
 import java.awt.Font;
@@ -58,10 +59,14 @@
                this.setBackground(treeTable.getBackground());
                
this.setBackgroundSelectionColor(treeTable.getSelectionBackground());
 
-               if (selected)
+               if (selected) {
                        this.setFont(TABLE_FONT_SELECTED);
-               else
+                       this.setBackgroundSelectionColor(Color.lightGray);      
                
+                       }
+               else {
                        this.setFont(TABLE_FONT);
+                       this.setBackgroundNonSelectionColor(Color.white); 
+               }
 
                if(treeNode.getNetwork() == null) {
                        setForeground(treeTable.getForeground());

-- 
You received this message because you are subscribed to the Google Groups 
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cytoscape-cvs?hl=en.

Reply via email to