Java Reference
In-Depth Information
Figure 14-4.
SMSMidlet running in two instances of the emulator
The SMSMIDlet uses three classes in its implementation. Two—
SMSMidlet
and
SMSSender
—are public, while the remaining one—
SetMessage
—is private. The
SMSMIDlet
class, shown in Listing 14-6, performs the work necessary to set up the user interface and
receive messages.
■
Tip
Listing 14-6 won't compile, of course, until after you define the
SMSSender
class, which I show later
in this section in Listing 14-7.