Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import AuiAs2.MathsGame;
- import AuiAs2.Model.Model;
- import AuiAs2.ScreenInterface;
- import AuiAs2.View.DiffView;
- import javax.swing.*;
- import java.awt.event.ActionEvent;
- import java.awt.event.ActionListener;
- public class DiffControl {
- private DiffView diffView;
- private Model model;
- public DiffControl(DiffView diffView, Model model) {
- this.diffView = diffView;
- this.model = model;
- this.diffView.addNewGameListener(new NewGameListener());
- }
- class NewGameListener implements ActionListener {
- String selectedDiff;
- @Override
- public void actionPerformed(ActionEvent e) {
- selectedDiff = diffView.getSelectedDiff();
- //MathsGame.setLayCard(panContainer, "New Game"));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment