JComponent double-buffering vs. trad. double-buffering in AWT
Hi there,
I'm accustomed to using the following drawing approach:
- JPanel, draw everything to offscreen buffer in paintComponent() and then draw offscreen buffer to screen while relying on JComponents' automatic double buffering. Everything is done in paintComponent().
Are there any ways of improving performance? What about the paint() - update() method with AWT components? Should I use that instead, since there is really no other use for Swing components here? What about speed differences between AWT and Swing generally?
I guess most of you have your own approach - pass it on, pass it on!
-wp

