diff --git a/HeatUp/src/de/heatup/testing/GameLoopD.java b/HeatUp/src/de/heatup/testing/GameLoopD.java index 6b1327c..76b71e9 100644 --- a/HeatUp/src/de/heatup/testing/GameLoopD.java +++ b/HeatUp/src/de/heatup/testing/GameLoopD.java @@ -57,20 +57,20 @@ public class GameLoopD extends JFrame implements Runnable { outerPanel = new JPanel(); outerPanel.setLayout(new BorderLayout()); - outerPanel.setVisible(true); + outerPanel.setFocusable(false); statusPanel = new JPanel(); - statusPanel.setLayout(new GridLayout(1,4)); statusPanel.setPreferredSize(new Dimension(800,80)); + statusPanel.setFocusable(false); gamePanel = new JPanel(); gamePanel.setLayout(null); gamePanel.setPreferredSize(new Dimension(800,600)); - gamePanel.setVisible(true); actionPanel = new JPanel(); actionPanel.setLayout(new GridLayout(1,1)); actionPanel.setPreferredSize(new Dimension(800,80)); + actionPanel.setFocusable(false); outerPanel.add(statusPanel,BorderLayout.NORTH); @@ -121,6 +121,9 @@ public class GameLoopD extends JFrame implements Runnable { Point spawnPoint4 = SpawnAssistant.getPathLocationOnGrid(); opponent03.spawnAt(spawnPoint4); + actionPanel.setVisible(true); + outerPanel.setVisible(true); + statusPanel.setVisible(true); gamePanel.setVisible(true); //GameInterface.getGamePanel().repaint();