// This Class is (c)opyright 1999 by Geoff Knagge. It may be freely used // for any non-commercial purpose on the following conditions: // 1. You indemnify the copyright holder of all possible liability // resulting from its use. // 2. You provide a link back to the source of this file, that is // http://browse.to/gogogeoff // // Use of this class shows your agreement to the above. import java.awt.*; public class ResultsCanvas extends Panel { private int numPieces; Label wrongLab; public void setScore(int colours, int matches) { wrongLab.setText(Integer.toString(colours)+", "+Integer.toString(matches)); } public ResultsCanvas(int maxitems) { setLayout(new GridLayout(1,1) ); wrongLab = new Label(" "); add(wrongLab); } }