Skip to content

Commit

Permalink
Fixed layout
Browse files Browse the repository at this point in the history
  • Loading branch information
xpdota committed Mar 3, 2022
1 parent 34bc7ff commit 9927a04
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,10 @@ public static void run(Runnable run) {
frame.setVisible(false);
frame.dispose();
});
JPanel buttons = new JPanel(new WrapLayout());
JPanel buttons = new JPanel(new WrapLayout(WrapLayout.CENTER));
buttons.add(exit);
buttons.add(tryContinue);
c.fill = GridBagConstraints.HORIZONTAL;
panel.add(buttons, c);
frame.add(panel);
frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
Expand Down

0 comments on commit 9927a04

Please sign in to comment.