Images can be displayed in GUIs in two fortmats:
The java.awt package contains a class Image which includes a method getImage() which is invoked using an Applet object.
The Toolkit abstract class contains method which give GUIs a particular look and feel. Typical methods of interest contained in this class are methods to: display system properties, print, access the system clipboard and manipulate images (GIFs and JPEGs). The Toolkit class is an abstract class and thus to use the methods contained in this class we must create an object of some subclass of this class. An appropraite subclass can be obtained using the method getDefaultToolkit