From 5d97e2f2eec9d060916b1b9ae6bebe2ba96f3c01 Mon Sep 17 00:00:00 2001 From: Yazan Alaamer Date: Fri, 20 Jan 2023 20:12:00 +0100 Subject: [PATCH] create choices game 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 f38f014..40ac1ea 100644 --- a/src/main/java/game/StartDarkSoulsGame.java +++ b/src/main/java/game/StartDarkSoulsGame.java @@ -17,6 +17,7 @@ public class StartDarkSoulsGame { JLabel titelNameLabel; JPanel StartButtonPanel; JPanel mainTextPanel; + JPanel choiceButtonPanel; JTextArea mainTextArea; Font titelFont = new Font("Times new Roman", Font.PLAIN, 90); Font normalFont = new Font ("Times new Roman", Font.PLAIN, 28); @@ -71,6 +72,12 @@ public class StartDarkSoulsGame { mainTextArea.setFont(normalFont); mainTextArea.setLineWrap(true); mainTextPanel.add(mainTextArea); + + choiceButtonPanel = new JPanel(); + choiceButtonPanel.setBounds(250, 350, 300, 150); + choiceButtonPanel.setBackground(Color.blue); + choiceButtonPanel.setLayout(new GridLayout(4,1)); + con.add(choiceButtonPanel); } public class TitelScreenHandler implements ActionListener{ public void actionPerformed(ActionEvent event) {