posted 13 years ago
In AWT, paint() did all the graphics for the component. In Swing, paint() calls the paintComponent(), paintChildren(), paintBorder(), etc. methods, and they are in charge of doing the painting of different things in the component. paintComponent() behaves pretty much like paint() in AWT... it paints the component... for more info on overriding paint routines of Swing components, look here...