From 9927a046348a9d6b0a21a933cf00b1be5afe6a54 Mon Sep 17 00:00:00 2001 From: xp Date: Wed, 2 Mar 2022 16:32:10 -0800 Subject: [PATCH] Fixed layout --- .../main/java/gg/xp/xivsupport/gui/util/CatchFatalError.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xivsupport/src/main/java/gg/xp/xivsupport/gui/util/CatchFatalError.java b/xivsupport/src/main/java/gg/xp/xivsupport/gui/util/CatchFatalError.java index 348a00a5a681..805f296d9376 100644 --- a/xivsupport/src/main/java/gg/xp/xivsupport/gui/util/CatchFatalError.java +++ b/xivsupport/src/main/java/gg/xp/xivsupport/gui/util/CatchFatalError.java @@ -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);