From 829c2fbd3b20169205c93f72e785ababe3abfa62 Mon Sep 17 00:00:00 2001 From: Yazan Alaamer Date: Fri, 20 Jan 2023 20:29:34 +0100 Subject: [PATCH] create player panel --- src/main/java/game/StartDarkSoulsGame.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/game/StartDarkSoulsGame.java b/src/main/java/game/StartDarkSoulsGame.java index d2ea974..d2630c4 100644 --- a/src/main/java/game/StartDarkSoulsGame.java +++ b/src/main/java/game/StartDarkSoulsGame.java @@ -18,6 +18,7 @@ public class StartDarkSoulsGame { JPanel StartButtonPanel; JPanel mainTextPanel; JPanel choiceButtonPanel; + JPanel playerPanel; JTextArea mainTextArea; Font titelFont = new Font("Times new Roman", Font.PLAIN, 90); Font normalFont = new Font ("Times new Roman", Font.PLAIN, 28); @@ -103,6 +104,12 @@ public class StartDarkSoulsGame { choice4.setForeground(Color.white); choice4.setFont(normalFont); choiceButtonPanel.add(choice4); + + playerPanel = new JPanel(); + playerPanel.setBounds(100,15,600,50); + playerPanel.setBackground(Color.red); + playerPanel.setLayout(new GridLayout(1,4)); + con.add(playerPanel); } public class TitelScreenHandler implements ActionListener{ public void actionPerformed(ActionEvent event) {