From ab4632db1051d0cc4ac9bbda9fe13bf4a5e8c23e Mon Sep 17 00:00:00 2001 From: Alexey Kudravtsev Date: Thu, 29 Dec 2011 14:50:56 +0400 Subject: [PATCH] cleanup --- .../src/com/intellij/uiDesigner/lw/FormLayoutSerializer.java | 4 ++-- .../android/exportSignedPackage/CheckModulePanel.java | 3 +-- .../jetbrains/android/uipreview/DeviceConfiguratorPanel.java | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/java/compiler/forms-compiler/src/com/intellij/uiDesigner/lw/FormLayoutSerializer.java b/java/compiler/forms-compiler/src/com/intellij/uiDesigner/lw/FormLayoutSerializer.java index 8638767a9c39..86544b9d45b8 100644 --- a/java/compiler/forms-compiler/src/com/intellij/uiDesigner/lw/FormLayoutSerializer.java +++ b/java/compiler/forms-compiler/src/com/intellij/uiDesigner/lw/FormLayoutSerializer.java @@ -36,10 +36,10 @@ public class FormLayoutSerializer extends GridLayoutSerializer { public static FormLayoutSerializer INSTANCE = new FormLayoutSerializer(); - public static CellConstraints.Alignment[] ourHorizontalAlignments = new CellConstraints.Alignment[] { + public static CellConstraints.Alignment[] ourHorizontalAlignments = { CellConstraints.LEFT, CellConstraints.CENTER, CellConstraints.RIGHT, CellConstraints.FILL }; - public static CellConstraints.Alignment[] ourVerticalAlignments = new CellConstraints.Alignment[] { + public static CellConstraints.Alignment[] ourVerticalAlignments = { CellConstraints.TOP, CellConstraints.CENTER, CellConstraints.BOTTOM, CellConstraints.FILL }; diff --git a/plugins/android/src/org/jetbrains/android/exportSignedPackage/CheckModulePanel.java b/plugins/android/src/org/jetbrains/android/exportSignedPackage/CheckModulePanel.java index b556ad431ca8..95a88451090f 100644 --- a/plugins/android/src/org/jetbrains/android/exportSignedPackage/CheckModulePanel.java +++ b/plugins/android/src/org/jetbrains/android/exportSignedPackage/CheckModulePanel.java @@ -21,7 +21,6 @@ import com.intellij.openapi.ui.VerticalFlowLayout; import org.jetbrains.android.facet.AndroidFacet; import javax.swing.*; -import java.awt.*; /** * @author Eugene.Kudelevsky @@ -31,7 +30,7 @@ public class CheckModulePanel extends JPanel { private boolean myHasWarnings; public CheckModulePanel() { - super(new VerticalFlowLayout(FlowLayout.LEFT)); + super(new VerticalFlowLayout(VerticalFlowLayout.TOP)); } public void updateMessages(AndroidFacet facet) { diff --git a/plugins/android/src/org/jetbrains/android/uipreview/DeviceConfiguratorPanel.java b/plugins/android/src/org/jetbrains/android/uipreview/DeviceConfiguratorPanel.java index 2d96e18b13ca..19738d60d394 100644 --- a/plugins/android/src/org/jetbrains/android/uipreview/DeviceConfiguratorPanel.java +++ b/plugins/android/src/org/jetbrains/android/uipreview/DeviceConfiguratorPanel.java @@ -353,7 +353,7 @@ public abstract class DeviceConfiguratorPanel extends JPanel { rightPabel.add(new JBScrollPane(myChosenQualifiersList, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER), BorderLayout.CENTER); - final JPanel buttonsPanel = new JPanel(new VerticalFlowLayout(FlowLayout.CENTER, 0, 0, true, false)); + final JPanel buttonsPanel = new JPanel(new VerticalFlowLayout(VerticalFlowLayout.MIDDLE, 0, 0, true, false)); myAddQualifierButton = new JButton(">>"); buttonsPanel.add(myAddQualifierButton); myRemoveQualifierButton = new JButton("<<");