From b32bbb919f37a8752937b470c597a081d040bf77 Mon Sep 17 00:00:00 2001 From: iqqu <33103874+iqqu@users.noreply.github.com> Date: Mon, 30 Oct 2017 18:14:10 -0400 Subject: [PATCH] Make URL bar full height --- src/main/java/com/rarchives/ripme/ui/MainWindow.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/rarchives/ripme/ui/MainWindow.java b/src/main/java/com/rarchives/ripme/ui/MainWindow.java index 816d9a7b..af924bfe 100644 --- a/src/main/java/com/rarchives/ripme/ui/MainWindow.java +++ b/src/main/java/com/rarchives/ripme/ui/MainWindow.java @@ -261,14 +261,16 @@ public final class MainWindow implements Runnable, RipStatusHandler { JPanel ripPanel = new JPanel(new GridBagLayout()); ripPanel.setBorder(emptyBorder); + gbc.fill = GridBagConstraints.BOTH; gbc.weightx = 0; gbc.gridx = 0; ripPanel.add(new JLabel("URL:", JLabel.RIGHT), gbc); gbc.weightx = 1; + gbc.weighty = 1; gbc.gridx = 1; ripPanel.add(ripTextfield, gbc); + gbc.weighty = 0; gbc.weightx = 0; gbc.gridx = 2; ripPanel.add(ripButton, gbc); gbc.gridx = 3; ripPanel.add(stopButton, gbc); - gbc.fill = GridBagConstraints.BOTH; gbc.weightx = 1; statusLabel = new JLabel("Inactive");