Thanks Shambolic.
olemagro, you can get them to 'stick' if you draw the boundary relative to the width of the board, not the screen.
g2.drawLine(x0, y0, x0, 9 * y0);
Because your widths...
Type: Posts; User: copeg
Thanks Shambolic.
olemagro, you can get them to 'stick' if you draw the boundary relative to the width of the board, not the screen.
g2.drawLine(x0, y0, x0, 9 * y0);
Because your widths...
You could just iterate over the grid, calling g.fillRect when necessary. Creating objects and moving them via other objects looks like a bit of work for a drawing routine. Something like this:
...