I have my constructor written, but I need to execute an Instance variable called reset() which will call the method reset and place a dot into the middle of a square.
Here is my constructor
/**
* Constructor for objects of class Dice
*/
public Dice(Square bg, Circle tL, Circle tM, Circle tR, Circle mid, Circle bL, Circle bM, Circle bR)
{
background = bg;
bg.setLength(75);
tL = topLeftSpot;
tM = topMiddleSpot;
tR = topRightSpot;
mid = middleSpot;
bL = bottomLeftSpot;
bM = bottomMiddleSpot;
bR = bottomRightSpot;
this.reset();
}
here is the instance method
public void reset()
{
this.getBackground().setXPos(0);
this.getTopLeftSpot().setXPos(3);
this.getTopLeftSpot().setYPos(3);
this.getTopMiddleSpot().setXPos(25);
this.getTopMiddleSpot().setYPos(3);
this.getTopRightSpot().setXPos(48);
this.getTopRightSpot().setYPos(3);
this.getMiddleSpot().setXPos(25);
this.getMiddleSpot().setYPos(25);
this.getBottomLeftSpot().setXPos(3);
this.getBottomLeftSpot().setYPos(48);
this.getBottomMiddleSpot().setXPos(25);
this.getBottomMiddleSpot().setYPos(48);
this.getBottomRightSpot().setXPos(48);
this.getBottomRightSpot().setYPos(48);
this.face1();
}
I can compile the class with out any errors but when I run it the square appears but the dot does not appear in the center like it should. I just can't get the reset to work. I'm sure its a simple fix but as I'm new to Java everything seems complicated
Thanks for any help

