Reputation: 247
I have just learned to use arraylist so be nice :P .
I wonder how i can put a few objects (like a circle
or a square
) into the arraylist
and draw them out on a jpanel
so all of them stay. I know how to draw one thing but i'm trying to make a game and would like to have multiple things drawn at the same time.
All answers appreciated!
Upvotes: 0
Views: 841
Reputation: 3521
I dont femiliar with JPanel and swing but a bsic algorithm will be:
Upvotes: 2