@ -0,0 +1,15 @@
package Gui;
import java.awt.Color;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public class StartGameGui implements ActionListener {
@Override
public void actionPerformed(ActionEvent e) {
gui.Panel.setVisible(false);
}
@ -32,6 +32,7 @@ public class gui {
public void createButtons() {
StartBtn = new JButton("Starte Spiel");
StartBtn.addActionListener(new StartGameGui());
CloseBtn = new JButton("Schlieen");
CloseBtn.addActionListener(new ActionHandler());