Applets provide built-in support for obtaining images, namely, the Applet.getImage method. A Java application, however, does not extend Applet, so applications that incorporate images are implemented differently than their applet counterparts. Figure 5-2 shows an application that displays an image. The application is listed in Example 5-3.
import java.awt.*; import java.awt.event.*; public class ImageTestApplication extends ...