From ac7dea0252e08f06d7604815c05b49e82bd2185f Mon Sep 17 00:00:00 2001 From: Weaver Date: Fri, 11 Oct 2024 22:21:07 -0700 Subject: [PATCH] Makes PlanetaryConditionsDialog work again after 4e9c487 --- .../src/megamek/client/ui/swing/PlanetaryConditionsDialog.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/megamek/src/megamek/client/ui/swing/PlanetaryConditionsDialog.java b/megamek/src/megamek/client/ui/swing/PlanetaryConditionsDialog.java index 8a0a4cb4d76..36e7f9d16fa 100644 --- a/megamek/src/megamek/client/ui/swing/PlanetaryConditionsDialog.java +++ b/megamek/src/megamek/client/ui/swing/PlanetaryConditionsDialog.java @@ -160,6 +160,9 @@ private void setupDialog() { getRootPane().getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(escape, closeAction); getRootPane().getInputMap(JComponent.WHEN_FOCUSED).put(escape, closeAction); getRootPane().getActionMap().put(closeAction, new CloseAction(this)); + + pack(); + center(); } private JPanel headerSection() {