Implementation of ImageViewer

The following UML diagram identifies the classes used in the Image Viewer example:

Figure 113: ImageViewerMIDlet class diagram

The ImageViewer example consists of the following classes:

The GUI consists of a simple file browser displaying the current directories and allowing navigation up and down the directory tree. The figures below show two screenshots of the file browser.

Figure 114: File Browser user interface in a Nokia device and a Nokia Communicator

Once an image is selected, it is displayed on a simple canvas with a black background as shown in the figure below.

Figure 115: ImageViewer user interface