From e5590d54158f1c0e0d03b4ffd2af7e9d4135a4b8 Mon Sep 17 00:00:00 2001 From: Daniel_M_Williams Date: Sat, 1 Aug 2020 12:59:33 -0400 Subject: [PATCH] [fix][gui][cosmetic] Adjusted layout in RocketComponentConfig layout to improve the legibility, and reduce dead space --- .../gui/configdialog/RocketComponentConfig.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/swing/src/net/sf/openrocket/gui/configdialog/RocketComponentConfig.java b/swing/src/net/sf/openrocket/gui/configdialog/RocketComponentConfig.java index 072dde1a2..60759a357 100644 --- a/swing/src/net/sf/openrocket/gui/configdialog/RocketComponentConfig.java +++ b/swing/src/net/sf/openrocket/gui/configdialog/RocketComponentConfig.java @@ -71,7 +71,8 @@ public class RocketComponentConfig extends JPanel { public RocketComponentConfig(OpenRocketDocument document, RocketComponent component) { - setLayout(new MigLayout("fill, gap 5!, ins panel", "[]:5[]", "[growprio 10]10![fill, grow, growprio 500]10![growprio 10]")); + setLayout(new MigLayout("fill, gap 4!, ins panel", "[]:5[]", "[growprio 5]5![fill, grow, growprio 500]5![growprio 5]")); + this.document = document; this.component = component; @@ -79,7 +80,7 @@ public class RocketComponentConfig extends JPanel { JLabel label = new JLabel(trans.get("RocketCompCfg.lbl.Componentname")); //// The component name. label.setToolTipText(trans.get("RocketCompCfg.ttip.Thecomponentname")); - this.add(label, "spanx, height 50!, split"); + this.add(label, "spanx, height 32!, split"); componentNameField = new JTextField(15); textFieldListener = new TextFieldListener(); @@ -126,8 +127,8 @@ public class RocketComponentConfig extends JPanel { this.remove(buttonPanel); } - buttonPanel = new JPanel(new MigLayout("fillx, ins 0")); - + buttonPanel = new JPanel(new MigLayout("fillx, ins 5")); + //// Mass: infoLabel = new StyledLabel(" ", -1); buttonPanel.add(infoLabel, "growx"); @@ -148,7 +149,7 @@ public class RocketComponentConfig extends JPanel { updateFields(); - this.add(buttonPanel, "newline, spanx, growx, height 50!"); + this.add(buttonPanel, "newline, spanx, growx, height 32!"); }