mirror of
https://github.com/SKCraft/Launcher.git
synced 2024-11-27 12:46:22 +01:00
Make button widths equal in account selection dialog
This commit is contained in:
parent
3a93e9f39a
commit
8a2b566b18
@ -75,13 +75,13 @@ public class AccountSelectDialog extends JDialog {
|
|||||||
buttonsPanel.addElement(loginButton);
|
buttonsPanel.addElement(loginButton);
|
||||||
|
|
||||||
//Login Buttons
|
//Login Buttons
|
||||||
LinedBoxPanel loginButtonsRow = new LinedBoxPanel(false);
|
JPanel loginButtonsRow = new JPanel(new BorderLayout(0, 5));
|
||||||
addMojangButton.setAlignmentX(CENTER_ALIGNMENT);
|
addMojangButton.setAlignmentX(CENTER_ALIGNMENT);
|
||||||
addMicrosoftButton.setAlignmentX(CENTER_ALIGNMENT);
|
addMicrosoftButton.setAlignmentX(CENTER_ALIGNMENT);
|
||||||
removeSelected.setAlignmentX(CENTER_ALIGNMENT);
|
removeSelected.setAlignmentX(CENTER_ALIGNMENT);
|
||||||
loginButtonsRow.addElement(addMojangButton);
|
loginButtonsRow.add(addMojangButton, BorderLayout.NORTH);
|
||||||
loginButtonsRow.addElement(addMicrosoftButton);
|
loginButtonsRow.add(addMicrosoftButton, BorderLayout.CENTER);
|
||||||
loginButtonsRow.addElement(removeSelected);
|
loginButtonsRow.add(removeSelected, BorderLayout.SOUTH);
|
||||||
loginButtonsRow.setBorder(BorderFactory.createEmptyBorder(0, 10, 0, 0));
|
loginButtonsRow.setBorder(BorderFactory.createEmptyBorder(0, 10, 0, 0));
|
||||||
|
|
||||||
JPanel listAndLoginContainer = new JPanel();
|
JPanel listAndLoginContainer = new JPanel();
|
||||||
@ -240,4 +240,4 @@ public class AccountSelectDialog extends JDialog {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user