From cffec978a587be47f0a7dbf5893ac17374e7d5d1 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Mon, 10 Oct 2011 17:15:57 +0200 Subject: [PATCH] gaps between label and text --- .../intellij/ide/util/projectWizard/NamePathComponent.java | 5 ++++- .../jetbrains/plugins/groovy/util/SdkHomeConfigurable.java | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/java/idea-ui/src/com/intellij/ide/util/projectWizard/NamePathComponent.java b/java/idea-ui/src/com/intellij/ide/util/projectWizard/NamePathComponent.java index 43fe7885842a..0f1e12d4ac05 100644 --- a/java/idea-ui/src/com/intellij/ide/util/projectWizard/NamePathComponent.java +++ b/java/idea-ui/src/com/intellij/ide/util/projectWizard/NamePathComponent.java @@ -83,10 +83,11 @@ public class NamePathComponent extends JPanel{ myNameLabel = new JLabel(nameLabelText); if (bold) myNameLabel.setFont(UIUtil.getLabelFont().deriveFont(Font.BOLD)); myNameLabel.setLabelFor(myTfName); - Insets insets = new Insets(0, 0, 5, 0); + Insets insets = new Insets(0, 0, 5, 4); this.add(myNameLabel, new GridBagConstraints(0, GridBagConstraints.RELATIVE, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, insets, 0, 0)); + insets = new Insets(0, 0, 5, 0); this.add(myTfName, new GridBagConstraints(1, GridBagConstraints.RELATIVE, 1, 1, 1.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, insets, 0, 0)); // todo: review texts @@ -102,8 +103,10 @@ public class NamePathComponent extends JPanel{ myPathLabel = new JLabel(pathLabelText); myPathLabel.setLabelFor(myTfPath); if (bold) myPathLabel.setFont(UIUtil.getLabelFont().deriveFont(Font.BOLD)); + insets = new Insets(0, 0, 5, 4); this.add(myPathLabel, new GridBagConstraints(0, GridBagConstraints.RELATIVE, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, insets, 0, 0)); + insets = new Insets(0, 0, 5, 0); this.add(myPathPanel, new GridBagConstraints(1, GridBagConstraints.RELATIVE, 1, 1, 1.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, insets, 0, 0)); } diff --git a/plugins/groovy/src/org/jetbrains/plugins/groovy/util/SdkHomeConfigurable.java b/plugins/groovy/src/org/jetbrains/plugins/groovy/util/SdkHomeConfigurable.java index 5823d9e82ca7..c114e62a55af 100644 --- a/plugins/groovy/src/org/jetbrains/plugins/groovy/util/SdkHomeConfigurable.java +++ b/plugins/groovy/src/org/jetbrains/plugins/groovy/util/SdkHomeConfigurable.java @@ -50,7 +50,7 @@ public abstract class SdkHomeConfigurable implements SearchableConfigurable { public JComponent createComponent() { myPanel = new JPanel(new BorderLayout(10, 5)); - final JPanel contentPanel = new JPanel(new BorderLayout()); + final JPanel contentPanel = new JPanel(new BorderLayout(4, 0)); myPanel.add(contentPanel, BorderLayout.NORTH); contentPanel.add(new JLabel(myFrameworkName + " home:"), BorderLayout.WEST); myPathField = new TextFieldWithBrowseButton();