From c27e85228fe3c7de8465959940c1cde64bdb7887 Mon Sep 17 00:00:00 2001 From: Timothée Floure Date: Mon, 9 May 2016 16:18:02 +0200 Subject: Fix the window size in GraphicalSimulation --- test/ch/epfl/xblast/simulation/GraphicalSimulation.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test') diff --git a/test/ch/epfl/xblast/simulation/GraphicalSimulation.java b/test/ch/epfl/xblast/simulation/GraphicalSimulation.java index 1a0d88f..5706577 100644 --- a/test/ch/epfl/xblast/simulation/GraphicalSimulation.java +++ b/test/ch/epfl/xblast/simulation/GraphicalSimulation.java @@ -42,6 +42,7 @@ public class GraphicalSimulation { private static JFrame buildFrame() { JFrame frame = new JFrame(); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); + frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setVisible(true); return frame; } @@ -50,6 +51,7 @@ public class GraphicalSimulation { JFrame frame = buildFrame(); XBlastComponent xblast = new XBlastComponent(); frame.setContentPane(xblast); + frame.pack(); for (GameState gs = INITIAL_GAMESTATE; !isSimulationOver(gs); gs = nextGameState(gs)) displayGameState(getClientData(gs), xblast); -- cgit v1.2.3