Hi, what does paintAll(g) do? How is it different from paint(g)? Thanks!
Post by:Max Punch
paint public void paint(Graphics g) Paints this component. This method is called when the contents of the component should be painted in response to the component first being shown or damage needing repair. The clip rectangle in the Graphics parameter will be set to the area which needs to be painted. For performance reasons, Components with zero width or height aren't considered to need painting when they are first shown, and also aren't considered to need repair. Parameters: g - The graphics context to use for painting. Since: JDK1.0 paintAll public void paintAll(Graphics g) Paints this component and all of its subcomponents. The origin of the graphics context, its (0, 0) coordinate point, is the top-left corner of this component. The clipping region of the graphics context is the bounding rectangle of this component. Parameters: g - the graphics context to use for painting. Since: JDK1.0
He's giving us the slip! Quick! Grab this tiny ad!