This commit is contained in:
Alexey Kudravtsev
2011-12-29 15:06:20 +04:00
parent 2f563abc2c
commit ab4632db10
3 changed files with 4 additions and 5 deletions
@@ -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
};
@@ -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) {
@@ -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("<<");