Drawing multiple instances of one class with an array
I have been tryng to draw two objects from the same class on a JFrame for about 5 hours now:confused:, but the last object created overrides the others.
For example I want to paint two objects from the class ball on one JFrame. I need to do this in an array, I have tried this with arrayLists and normal arrays from example codes but nothing seems to work. could anyone write me a simple piece of code or give me some tips please?