import javax.swing.*; import java.awt.*; public class Field { JButton button; private Color colorHide, color; private int x,y; boolean found; //boolean reserve; boolean postReserve; //Color []cArray = {BLUE,CYAN,GRAY,GREEN,MAGENTA,ORANGE,PINK,RED,WHITE,YELLOW}; public Field () { postReserve=false; } public Field(int i, int j){ button = new JButton("?"); color=new Color(255,255,255); y = i; x = j; found=false; // reserve=false; postReserve=false; } public Color getColorHide(){ return colorHide; } public Color getColor() { return color; } public void setColorHide(int r, int g, int b){ colorHide=new Color(r,g,b); } public void setFound(boolean f){ found=f; } public boolean getFound(){ return found; } }