// Copyright Andy Deck 2003, GNU Public License 2
// With the notable provision that any commercial use
// must be approved by the copyright holder.
import java.awt.*;

public class colorBut extends Canvas{
 int index;
    public colorBut(Color c, int index){
        setBackground(c);
        //resize(10,10);
        reshape((index*10)%60,(index/6)*7,8,7);
		this.index = index;
    }
	public int getIndex(){ return index; }
	/*
	public boolean handleEvent(Event e){
		if(e.id == Event.MOUSE_EXIT){
			return true;
		}
		else return false;
	}*/
}

