posted 19 years ago
This line
will load the image again each time the paint code executes. To see how often this can happen add a marker, like System.out.println("yo");, in the paint method and hide/show, minimize/restore or partially cover and uncover the top–level container. We only need to load it once. I would move the line to a class constructor.