Description: One area of Java where you can get into trouble is trying to balance memory management with performance. Take, for example, double buffering. Usually when you are drawing on a buffer, you aren't exactly sure how large a buffer you will need. In this example, we are using a 600-pixels-by-600-pixels applet window. The image we want to buffer is a grid of squares, which is 2000-pixels-by-2000 pixels. Here are some rough numbers on how much memory the buffer...