extra borders removed
authorDmitry Avdeev <Dmitry.Avdeev@jetbrains.com>
Fri, 30 Dec 2011 10:43:30 +0000 (14:43 +0400)
committerDmitry Avdeev <Dmitry.Avdeev@jetbrains.com>
Fri, 30 Dec 2011 11:02:59 +0000 (15:02 +0400)
java/idea-ui/src/com/intellij/ide/palette/impl/PaletteWindow.java
plugins/ui-designer/src/com/intellij/uiDesigner/propertyInspector/PropertyInspector.java
plugins/ui-designer/src/com/intellij/uiDesigner/propertyInspector/UIDesignerToolWindowManager.java

index 1f01d4d51f0bd83c6494f3788954e9ec991988b0..f14a38242e12b2b878677d637ea994bf3f48e9f7 100644 (file)
@@ -65,6 +65,7 @@ public class PaletteWindow extends JPanel implements DataProvider {
 
     setLayout(new GridLayout(1, 1));
     myScrollPane.addMouseListener(new MyScrollPanePopupHandler());
+    myScrollPane.setBorder(null);
     KeyStroke escStroke = KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0);
     new ClearActiveItemAction().registerCustomShortcutSet(new CustomShortcutSet(escStroke), myScrollPane);
     refreshPalette();
index b9077c5cc048caacba60f660ce063e54f564dd17..477ed50c11a6dec4a8386d94b528c8917f9e56fa 100644 (file)
@@ -18,7 +18,9 @@ package com.intellij.uiDesigner.propertyInspector;
 import com.intellij.openapi.project.Project;
 import com.intellij.openapi.ui.ex.MultiLineLabel;
 import com.intellij.openapi.util.Comparing;
+import com.intellij.ui.IdeBorderFactory;
 import com.intellij.ui.ScrollPaneFactory;
+import com.intellij.ui.SideBorder;
 import com.intellij.uiDesigner.UIDesignerBundle;
 import com.intellij.uiDesigner.componentTree.ComponentSelectionListener;
 import com.intellij.uiDesigner.componentTree.ComponentTree;
@@ -65,6 +67,7 @@ public final class PropertyInspector extends JPanel{
     // Card with property inspector
     final JPanel inspectorCard = new JPanel(new GridBagLayout());
     final JScrollPane inspectorScrollPane = ScrollPaneFactory.createScrollPane(myInspectorTable);
+    inspectorScrollPane.setBorder(IdeBorderFactory.createBorder(SideBorder.BOTTOM));
     inspectorCard.add(inspectorScrollPane,
       new GridBagConstraints(0, 0, 0, 1, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0)
     );
index c628acde799bfce204b5b9f03af31ba2c8007647..4f2866fa3ab76084ccd7d5819eca8ae2e10a9a3c 100644 (file)
@@ -31,7 +31,9 @@ import com.intellij.openapi.vfs.VirtualFile;
 import com.intellij.openapi.wm.ToolWindow;
 import com.intellij.openapi.wm.ToolWindowAnchor;
 import com.intellij.openapi.wm.ToolWindowManager;
+import com.intellij.ui.IdeBorderFactory;
 import com.intellij.ui.ScrollPaneFactory;
+import com.intellij.ui.SideBorder;
 import com.intellij.uiDesigner.UIDesignerBundle;
 import com.intellij.uiDesigner.componentTree.ComponentTree;
 import com.intellij.uiDesigner.componentTree.ComponentTreeBuilder;
@@ -95,6 +97,7 @@ public class UIDesignerToolWindowManager implements ProjectComponent {
     }
     myPendingListeners.clear();
     final JScrollPane scrollPane = ScrollPaneFactory.createScrollPane(myComponentTree);
+    scrollPane.setBorder(IdeBorderFactory.createBorder(SideBorder.BOTTOM));
     scrollPane.setPreferredSize(new Dimension(250, -1));
     myComponentTree.initQuickFixManager(scrollPane.getViewport());
     myPropertyInspector= new PropertyInspector(myProject, myComponentTree);