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 CalendarFortune Class

The CalendarFortune class allows you to see how a few of the methods of the Calendar and DateField classes work together to make it possible to set, transfer, and retrieve information relating to date and time. In the process, you explore the defined values the two classes provide. Use of the Date class proves important throughout, and to provide a contrast and review, use is made of the StringItem class and some of the formatting capabilities provided by the Item class. You can find the CalendarFortune class in the NetBeans Chapter12MIDlets project file and, in a standalone version, in the Chapter 12 source code file. When you run the MIDlet, you see a calendar. You then use the SELECT arrows and the soft keys to invoke ...

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