Browse Source

create choices game panel

master
Yazan Alaamer 2 years ago
parent
commit
5d97e2f2ee
  1. 7
      src/main/java/game/StartDarkSoulsGame.java

7
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) {

Loading…
Cancel
Save