Home Segments Top Top Previous Next

21: Mainline

The book develops a simple, yet realistic Java program, which you see in many versions as your understanding of the language increases. In its ultimate version, the program reads from a file that contains information about movies, computes an overall rating for a selected movie, displays the rating on a meter, and shows an advertising poster, if one is available. The program runs either as a standalone application or as an applet meant to be used via a network viewer. The applet version presents the following appearance:

Your browser is ignoring the <APPLET> tag!



To see the applet, you may need to download a plugin, because, at the moment, some popular browsers do not support the Java swing classes. Your browser should offer to do this for you.