O'Reilly logo

Java™ ME Game Programming, Second Edition by Ph.D. Martin J. Wells, Ph.D. John P. Flynt

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

The ImageItemFind Class

An extension of the work begun with the ComedyChoiceGroup, the ImageItemFind class provides examples of further uses of the Image class. In this setting, you add a photograph to the quote, providing the user of the MIDlet with both a view of the comedian and a representative joke from the comedian’s repertoire. To implement this class, you again use the Quotes class, but you use an inner class, Images, which provides largely the same service as the Quotes class, except that with this class no random selection is made. This class loads files that provide the data with which to create Image objects, and the Image objects can then be called based on their position within an array.

As with the previous example, being able ...

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