From 8a2b566b184e4ea7f769f16c9790b37561d2e0b8 Mon Sep 17 00:00:00 2001 From: Henry Le Grys Date: Sun, 28 Feb 2021 02:47:01 +0000 Subject: [PATCH] Make button widths equal in account selection dialog --- .../skcraft/launcher/dialog/AccountSelectDialog.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/launcher/src/main/java/com/skcraft/launcher/dialog/AccountSelectDialog.java b/launcher/src/main/java/com/skcraft/launcher/dialog/AccountSelectDialog.java index 54417cd..83ee469 100644 --- a/launcher/src/main/java/com/skcraft/launcher/dialog/AccountSelectDialog.java +++ b/launcher/src/main/java/com/skcraft/launcher/dialog/AccountSelectDialog.java @@ -75,13 +75,13 @@ public class AccountSelectDialog extends JDialog { buttonsPanel.addElement(loginButton); //Login Buttons - LinedBoxPanel loginButtonsRow = new LinedBoxPanel(false); + JPanel loginButtonsRow = new JPanel(new BorderLayout(0, 5)); addMojangButton.setAlignmentX(CENTER_ALIGNMENT); addMicrosoftButton.setAlignmentX(CENTER_ALIGNMENT); removeSelected.setAlignmentX(CENTER_ALIGNMENT); - loginButtonsRow.addElement(addMojangButton); - loginButtonsRow.addElement(addMicrosoftButton); - loginButtonsRow.addElement(removeSelected); + loginButtonsRow.add(addMojangButton, BorderLayout.NORTH); + loginButtonsRow.add(addMicrosoftButton, BorderLayout.CENTER); + loginButtonsRow.add(removeSelected, BorderLayout.SOUTH); loginButtonsRow.setBorder(BorderFactory.createEmptyBorder(0, 10, 0, 0)); JPanel listAndLoginContainer = new JPanel(); @@ -240,4 +240,4 @@ public class AccountSelectDialog extends JDialog { return this; } } -} \ No newline at end of file +}