Commit db52b14d authored by 9831111's avatar 9831111 🙂

Add CreateNewGame Action Listener.

parent 77983774
Pipeline #5353 canceled with stages
import javax.swing.*;
import javax.swing.border.LineBorder;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
import java.io.FileReader;
import java.util.Scanner;
......@@ -88,5 +90,14 @@ public class OnlineModeFrame extends JFrame {
}
class CreateNewGameAction implements ActionListener {
@Override
public void actionPerformed(ActionEvent e) {
dispose();
new CreateNewGameFrame("Make A New Game");
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment