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.

The ComedyChoiceGroup Class

You can find the ComedyChoiceGroup class in the Chapter 11 folder in two versions, one standalone, the other included in the Chapter11MIDlets project folder. The PNG files used by the class are in the Chapter11MIDlets\src folder. In addition to the primary MIDlet class file, you also make use of the Quotes.java file, which is used in this context in place of a data file or an RMS object. Here, the information used in the application is accessed using arrays, one for the files used to create Image objects, the other for the text displayed after the user selects one of the choices offered by the ChoiceGroup object. The use of Image objects is covered more extensively later on in this chapter. For now, it is important ...

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