Author: jflesch
Date: 2006-10-23 19:32:15 +0000 (Mon, 23 Oct 2006)
New Revision: 10705

Modified:
   trunk/apps/Thaw/src/thaw/plugins/index/IndexTree.java
Log:
Changing color in index tree

Modified: trunk/apps/Thaw/src/thaw/plugins/index/IndexTree.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/index/IndexTree.java       2006-10-23 
19:06:36 UTC (rev 10704)
+++ trunk/apps/Thaw/src/thaw/plugins/index/IndexTree.java       2006-10-23 
19:32:15 UTC (rev 10705)
@@ -51,6 +51,10 @@
  * Manages the index tree and its menu (right-click).
  */
 public class IndexTree extends java.util.Observable implements MouseListener, 
ActionListener, java.util.Observer {
+
+       public final static Color SELECTION_COLOR = new Color(190, 190, 190);
+       public final static Color LOADING_COLOR = new Color(230, 230, 230);
+       public final static Color LOADING_SELECTION_COLOR = new Color(150, 150, 
150);

        private JPanel panel;

@@ -623,6 +627,7 @@
                                                                       int row,
                                                                       boolean 
hasFocus) {
                        this.setBackgroundNonSelectionColor(Color.WHITE);
+                       this.setBackgroundSelectionColor(SELECTION_COLOR);

                        if(value instanceof DefaultMutableTreeNode) {
                                Object o = 
((DefaultMutableTreeNode)value).getUserObject();
@@ -631,7 +636,8 @@
                                        Index index = (Index)o;

                                        if(index.isUpdating()) {
-                                               
this.setBackgroundNonSelectionColor(Color.LIGHT_GRAY);
+                                               
this.setBackgroundNonSelectionColor(LOADING_COLOR);
+                                               
this.setBackgroundSelectionColor(LOADING_SELECTION_COLOR);
                                        }
                                }
                        }


Reply via email to