Java Reference
In-Depth Information
Quitting TextPad
After you create, save, compile, execute, test, and document the Welcome
to My Day applet, the program is complete and you can quit TextPad. To quit
TextPad and return control to Windows, perform the following step.
To Quit TextPad
OTHER WAYS
1. Click the Close button on the TextPad title bar.
The TextPad window closes and the Windows desktop is displayed.
1. Press ALT + F , X
2. On File menu, click
Exit
Chapter Summary
In this chapter, you learned the basic form of a Java application and an applet.
You learned how to use TextPad to enter comments as documentation, enter a
class header and a method header, and use the println() method to display
output in a console application. The println() method uses character strings,
escape characters, and concatenated data to format output. J2SE 5.0 includes
the printf() method that can embed data using a percent sign and a formatting
character. After learning how to compile the source code and debug any errors,
you learned how to run the Java application. Next, you learned how to edit
source code in the TextPad window using the import statement to import
packages, a Date constructor, and escape characters to format output. You
learned how to edit existing source code to convert the application into an
applet that can run on the Web. You learned how to import applet packages,
change a class name, and extend the Applet class, and how to use the paint,
drawString, and getImage methods to complete the applet code. Finally, you
created an HTML host document to display the applet and run it using Applet
Viewer.
Search WWH ::




Custom Search