Chapter 2: Hello, World!
Excerpt from Mobile 3D Graphics: Learning 3D Graphics with the Java Micro Edition (ISBN 1598632922).
M3G provides a 3D graphics library, but not an application model. That's where CLDC and MIDP come in, which define a host environment to create applications for mobile phones. Whereas CLDC takes care of class compilation and execution, MIDP provides the user interface and the deployment model. In this chapter, you develop a MIDlet that you can use as a framework for your own 3D applications.
This chapter shows you how to:
- Use the MIDP application framework.
- Display graphics and receive user input.
- Create a render loop for animated applications.
- Build and test a MIDlet with the Java Wireless Toolkit.
- Download a MIDlet to a phone.
Sample
The sample in Chapter 2 displays an animated, three-dimensional Hello, World! text.
Download
Chapter 2: Hello, World! (402 KB)

