Michael Dunn wrote:add the indicated line
Thanks for your reply again Michael.
refreshes the frame every time a new rectangle is made. I want to avoid refreshing the page. Currently my program has the same affect as if I was using the super.paintComponent() method.
I want to be able to create rectangles one on top of the other and only refresh it every time I click the start button. Once it refreshes, I'd like for it to continue drawing rectangles one on top of the other (i.e. the previous ones don't disappear) until I click stop and start again.
Not sure if I am communicating well here...