O'Reilly logo

Design Patterns Java™ Workbook by Steven John Metsker

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

A Classic Example: Image Proxies

While conducting plant tours, the Oozinoz public relations manager wants to pause at one point to show images of previous exhibitions. Your design team decides to satisfy this requirement with a PC-based Java application with a Swing GUI. You might convert to a browser-based thin-client design in the future, but in any case, you can rely on Java's extensive support for loading, manipulating, and displaying images.

As you start constructing the application, realize that you will want to load some images only on demand. You might make clickable, thumbnail versions of larger images, but in the first pass, you decide to show prebuilt Absent and Loading… images. Figure 11.1 shows three screen shots of the system you ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required