Skip to content
Snippets Groups Projects
Commit f06fad99 authored by Tamas Bunth's avatar Tamas Bunth
Browse files

fix size

parent 5cd8736c
No related branches found
No related tags found
No related merge requests found
......@@ -75,6 +75,7 @@ class GameWindow extends JFrame implements KeyListener {
contentPane.add(mapPanel, c);
// status bar at the bottom
c.weighty = 0.2;
c.gridx = 0; c.gridy = 1;
JPanel statusBarPanel = new JPanel(); // flowLayout
contentPane.add(statusBarPanel, c);
......
......@@ -170,7 +170,8 @@ public class View{
this.gameWindow = new GameWindow(this, width, height,
colonelStartLives, jaffaStartLives, colonelZPM, jaffaZPM);
this.gameWindow.setSize(width*80 , height*80 + 20 );
// TODO dynamic size
this.gameWindow.setSize(1024, 768 );
this.gameWindow.setVisible(true);
this.isInGame = true;
return true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment