I draw on an instance of BufferedImage and blit it to the screen in the
paintComponent() method. Now I am not sure how to react on a resize of the
output window. I can think of 3 strategies:
1. start with a BufferedImage the size of the whole screen and only use the
visible portion
2. resize the BufferedImage when needed
3. recreate the BufferedImage when needed
What strategy is best? I can always redo the painting since it is a 'View'
of the underlying 'Model'.
(posted before on comp.lang.java.gui but traffic is -l-o-w-)
opalpa@gmail.com opalinski from opalpaweb - 14 Feb 2006 21:06 GMT
I suggest option 3 which might use option 2. But not option 1.
Opalinski
opalpa@gmail.com
http://www.geocities.com/opalpaweb/