Browse Source

[GamelauncherMain Class]: Actionlistener fuer Button

remotes/origin/textadventure
fdai7431 2 years ago
parent
commit
2ecb7d5a23
  1. 14
      JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/GamelauncherMain.java

14
JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/GamelauncherMain.java

@ -3,6 +3,8 @@ package de.hs_fulda.gruppenprojekt.JavaGamelauncher;
import java.awt.Color;
import java.awt.EventQueue;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
@ -89,6 +91,18 @@ public class GamelauncherMain extends JFrame {//class
contentPane.add(btnTikTakToe);
contentPane.add(btnTextadventure);
btnSnake.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
// TODO Auto-generated method stub
//SnakeGame frameSnake = new SnakeGame();
//frameSnake.setVisible(true);
}
});
}//end standardkonstruktor
}//end class
Loading…
Cancel
Save