One is when the first time frame is created and displayed.The other is when the frame is resized (by dragging the frame border with mouse) by the user.
Then in the paint Component method just loop through all Sprites and draw their image objects, and the changes to the image objects are dealt with when needed and not redrawn for every repaint.
The paint() method is called by the JVM implicitly in two circumstances.
repaint() == paint() repaint() does not invoke paint() directly.
The doc say that overriding update() should avoid clearing the background. Do you use the @Override directive to have the compiler check it?
you are use to it and we will use a Canvas to do our drawing...
Canvas are needed because we can apply a to them Buffe Startegy is the bumber of buffers we will use to draw "offscreen".If I understand your question correctly, this is not the solution that your are looking for. spontaneous painting, initiated by the environment 2.What you might want to do is move the contents of your applet using the setbounds and disable/reenable anything that is not used in both by use of the setvisible method. programmer generated calls via repaint() and update() The repaint() Method The repaint() method is the one invoked by a program to do drawing.I need to have the user click on the start button and be able to go to another window with different buttons.I asked around and they told me to use repain, but am not sure of how it works, I need help!!! I gave up to expect a perfectly professional appearence. According to the guidelines rudeness is removed from the forum.