1
0
mirror of https://github.com/SKCraft/Launcher.git synced 2024-11-24 12:16:28 +01:00

Make button widths equal in account selection dialog

This commit is contained in:
Henry Le Grys 2021-02-28 02:47:01 +00:00
parent 3a93e9f39a
commit 8a2b566b18

View File

@ -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;
}
}
}
}