package example9_2_BlocksMania; import javax.swing.JButton; /** * Class to describe a button used in the Barnyard Simon game. The class manages * the button along with its color and sound. * @author yoder * @version 2010-01-10 * @created 15-Jan-2014 6:47:12 PM */ public class Tile extends JButton { private Position position; private final char tileType; public Tile(char tileType) { this.tileType = tileType; setText(tileType+""); } }