I'm trying to make a representation of a dice in Java with a given classes(Square, Circle and Canvas), I have represent the box of the dice with the square but at the time of represent the n circles I have made a Circle matrix, but it doesn't appear, this is my dice constructor:
public Dice(){
dice = new Rectangle();
Circle matrix[][] = new Circle[3][3];
matrix[0][0] = new Circle();
matrix[0][1] = null;
matrix[0][2] = new Circle();
matrix[1][0] = new Circle();
matrix[1][1] = new Circle();
matrix[1][2] = new Circle();
matrix[2][0] = new Circle();
matrix[2][1] = null;
matrix[2][2] = new Circle();
// Circle
diameter = 20;
xPositionDot = 20;
yPositionDot = 15;
colorDot = "blue";
isVisibleDot = false;
// Box
height = 100;
width = 100;
colorBox = "red";
xPosition = 70;
yPosition = 15;
isVisible = false;
}
So any ideas in what I'm doing wrong?