I have to make an applet for school, it's a team project (But frankly we haven't been working much as a team) and the only way we know how to (or can think of) is to call repaint() from the paint method.
Is there a better way? Because that seems to use up memory if there's a lot of stuff.
Technology can never substitute for knowledge.
posted 8 years ago
Painting in an applet is the same painting in an application; you'd use the paint method (if you're using AWT) or paintComponent (if you're using Swing).
Could it be that there's a memory leak somewhere, or that you're performing something particularly memory-intensive (e.g. image operations)?