Some reader favorites:
EJB fundamentals and session beans
Create a scrollable virtual desktop in Swing
Wizard API updated!
Tim Boudreau has released a new version of the Swing Wizard library (version 0.997) that fixes the WizardException bug reported in JavaWorld's recent Open Source Java Project profile. The article's examples have been reworked to test out the new, improved WizardException. Thanks, Tim, for this helpful fix!
Open Source Java Projects: The Wizard API
RecordStore. These two concepts will be discussed in detail through a simple Stock Portfolio management application constructed specifically
for this article.TEXTBOX: TEXTBOX_HEAD: Device programming with MIDP: Read the whole series!
In the examples found in Part 1, I discussed the two major categories of Displayables: Canvas and Screen.
Canvasis a type of Displayable in which the developer accepts responsibility for creating the entire user interface. This is an extremely useful interface
for creating complex graphical interfaces, such as those used in video games. If you choose this path, the UI is drawn on
a Canvas object similar to the AWT Canvas used in applets.
Screenis a type of Displayable in which you use predefined components to assemble a user interface. The components are similar to those AWT components used
in constructing applets, such as Label and TextField. If you choose this path, you will need to add components to a subclass of the abstract Screen object when necessary to construct your user interface.
I will focus on the Screen type of Displayableobject in this part of the series, since the Canvas object was sufficiently discussed Part 1. As I mentioned above, the Screen object is an abstract class of Displayable. The subclasses of the Screenclass are Alert, Form, List, and TextBox.
In this article, I will examine the mechanics of these Displayableobjects, including the construction, interaction, and event-handling schemes that enable them to come together to form an
application.
The best way to learn how to use some of these screens is through an example. The example used here contains some workflow that demonstrates the following concepts:
javax.microedition.lcduiclasses
javax.microedition.rms data store on the device
To provide this information, I will use a simple rendition of a brokerage application. In this application, the user can buy a stock or sell a stock that he or she currently owns. Please understand that this process has been highly simplified in order to demonstrate key concepts.
In Part 3 of this series, I will expand this application to connect with a ticker service to retrieve accurate pricing for the purchase-using HTTP.
Free Download - 5 Minute Product Review. When slow equals Off: Manage the complexity of Web applications - Symphoniq
![]()
Free Download - 5 Minute Product Review. Realize the benefits of real user monitoring in less than an hour. - Symphoniq