To improve performance in these areas, use the following techniques:
Double buffering (for instance, for animation, draw the image off-screen and load all at once).
Overriding the default, update() function
public void update(Graphics g) { paint(g); } |
Custom layout managers. If you want custom behavior, GUI performance is best if you write your own.
Events. The JDK 1.1 has a more efficient event model than JDK 1.0.
Repaint only the damaged regions (use ClipRect).