Hello, I'm a beginner in Java and I'm trying to create a jpanel that
creates 10 concentric circles with random radius. But I'm having a bit trouble with it.
Here are my codes:
When I run this, I get only one circle (sometimes none...)
if i set radius = generator.nextInt(MAX_DIAMETER) + 1;
But if i replace MAX_DIAMETER which is 600, to something small maybe 100.
radius = generator.nextInt(100)+1;
than i get 5-10 circles...
What am i doing wrong??