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?
posted 8 years ago
You shouldn't call paintComponent directly - Swing does that for you.