class Button{ private int x; private int y; private int color; public static final int COLOR_BLACK=0; public static final int COLOR_WHITE=1; public Button(int newX, int newY, int newColor) { x=newX; y=newY; color = newColor; } public int getX() { return x; } public int getY() { return y; } public void setCoordinates(int newX, int newY) { x=newX; y=newY; } public int getColor() { return color; } public void setColor(int newColor) { color = newColor; } }