the program runs creating an Orange rectangle inside a frame,,,thanks. I had thought that it would work if we called the paintComponent() from within main. What is the reason that it dosen't work that way?
Joined: Mar 22, 2005
You shouldn't call paintComponent directly - Swing does that for you.