remove selection from components hierarchy tree
authorKonstantin Bulenkov <kb@jetbrains.com>
Wed, 18 Nov 2009 12:47:48 +0000 (15:47 +0300)
committerKonstantin Bulenkov <kb@jetbrains.com>
Wed, 18 Nov 2009 12:47:48 +0000 (15:47 +0300)
plugins/ui-designer/src/com/intellij/uiDesigner/componentTree/ComponentTree.java

index 9c5a8633ba4543ef967703e8c5374da7a035f388..950b8b8761b9e4907e2e7f33a9d014ee03a9d8fa 100644 (file)
@@ -477,7 +477,9 @@ public final class ComponentTree extends Tree implements DataProvider {
         setIcon(getComponentIcon(component));
 
         if (component == myDropTargetComponent) {
-          setBorder(BorderFactory.createLineBorder(Color.BLUE, 2));
+          setBorder(BorderFactory.createLineBorder(Color.BLUE, 1));
+        } else {
+          setBorder(BorderFactory.createEmptyBorder(1,1,1,1));
         }
       }
       else if (node.getUserObject() != null) {