i changed it to:
int h = 0;
for(int i=0;i<10;i++)
{
for(int j=0;j<100;j+=10)
{
rects[h] = new Rectangle(offset + j, offset + (i*10), squaresize, squaresize);...
Type: Posts; User: Harry Blargle
i changed it to:
int h = 0;
for(int i=0;i<10;i++)
{
for(int j=0;j<100;j+=10)
{
rects[h] = new Rectangle(offset + j, offset + (i*10), squaresize, squaresize);...
Yes, like i said, the first println shows the proper x and y values on everything, the second one shows the same x and y value for everything (115)
I'm trying to get java to draw 100 squares in a grid but it's not working properly. It compiles and runs without error but it only prints 1 square. Uncommenting the println() in makeGrid() shows the...