aboutsummaryrefslogtreecommitdiff
path: root/test/ch/epfl
diff options
context:
space:
mode:
authorTimothée Floure2016-05-09 16:18:02 +0200
committerTimothée Floure2016-05-09 16:18:02 +0200
commitc27e85228fe3c7de8465959940c1cde64bdb7887 (patch)
tree462613f067613d01933f5ff16f1a333b58dd7411 /test/ch/epfl
parent07672117b406c6f967e02e997a484114beca37be (diff)
downloadxblast-c27e85228fe3c7de8465959940c1cde64bdb7887.tar.gz
Fix the window size in GraphicalSimulation
Diffstat (limited to 'test/ch/epfl')
-rw-r--r--test/ch/epfl/xblast/simulation/GraphicalSimulation.java2
1 files changed, 2 insertions, 0 deletions
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 {
42 private static JFrame buildFrame() { 42 private static JFrame buildFrame() {
43 JFrame frame = new JFrame(); 43 JFrame frame = new JFrame();
44 frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); 44 frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
45 frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
45 frame.setVisible(true); 46 frame.setVisible(true);
46 return frame; 47 return frame;
47 } 48 }
@@ -50,6 +51,7 @@ public class GraphicalSimulation {
50 JFrame frame = buildFrame(); 51 JFrame frame = buildFrame();
51 XBlastComponent xblast = new XBlastComponent(); 52 XBlastComponent xblast = new XBlastComponent();
52 frame.setContentPane(xblast); 53 frame.setContentPane(xblast);
54 frame.pack();
53 55
54 for (GameState gs = INITIAL_GAMESTATE; !isSimulationOver(gs); gs = nextGameState(gs)) 56 for (GameState gs = INITIAL_GAMESTATE; !isSimulationOver(gs); gs = nextGameState(gs))
55 displayGameState(getClientData(gs), xblast); 57 displayGameState(getClientData(gs), xblast);