Browse Source

create player panel

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

7
src/main/java/game/StartDarkSoulsGame.java

@ -18,6 +18,7 @@ public class StartDarkSoulsGame {
JPanel StartButtonPanel; JPanel StartButtonPanel;
JPanel mainTextPanel; JPanel mainTextPanel;
JPanel choiceButtonPanel; JPanel choiceButtonPanel;
JPanel playerPanel;
JTextArea mainTextArea; JTextArea mainTextArea;
Font titelFont = new Font("Times new Roman", Font.PLAIN, 90); Font titelFont = new Font("Times new Roman", Font.PLAIN, 90);
Font normalFont = new Font ("Times new Roman", Font.PLAIN, 28); Font normalFont = new Font ("Times new Roman", Font.PLAIN, 28);
@ -103,6 +104,12 @@ public class StartDarkSoulsGame {
choice4.setForeground(Color.white); choice4.setForeground(Color.white);
choice4.setFont(normalFont); choice4.setFont(normalFont);
choiceButtonPanel.add(choice4); 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 class TitelScreenHandler implements ActionListener{
public void actionPerformed(ActionEvent event) { public void actionPerformed(ActionEvent event) {

Loading…
Cancel
Save