// This file contains excerpts from the textbook Concrete // Abstractions: An Introduction to Computer Science Using Scheme, by // Max Hailperin, Barbara Kaiser, and Karl Knight, Copyright (c) 1998 // by the authors. Full text is available for free at // http://www.gustavus.edu/+max/concrete-abstractions.html import java.awt.event.*; public class TileActionListener implements ActionListener { private Puzzle puz; private int row, col; public TileActionListener(Puzzle p, int r, int c){ puz = p; row = r; col = c; } public void actionPerformed(ActionEvent evt){ puz.pushTile(row, col); } }