MagicController

MagicController - this.myModel = [email protected] public void...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
import java.util.*; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; public class MagicController implements ActionListener{ p private MagicModel myModel; public MagicController(MagicModel model)
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: { this.myModel = model; } @Override public void actionPerformed(ActionEvent e) { int x = ((MagicButton) e.getSource()).get_X(); int y = ((MagicButton) e.getSource()).get_Y(); this.myModel.placeValue(x, y); } }...
View Full Document

This note was uploaded on 04/13/2010 for the course SYSC 2101 taught by Professor Babac during the Winter '10 term at Carleton CA.

Ask a homework question - tutors are online