Java Reference
In-Depth Information
The payment data should be written in a generic format. Once the data is
written, the program should clear the fields and display the BillPayer interface
again. If the user clicks the Close button, a confirmation dialog box should
display asking the user if he/she wants to exit the program.
Starting a New Java Program in TextPad
The following steps start TextPad and save the TextPad document using a Java
file type.
To Start a New Java Program in TextPad
OTHER WAYS
1. Start TextPad. If necessary, click View on the menu bar and then click
Line Numbers to display line numbers.
2. Insert the Data Disk in drive A. Click File on the menu bar and then click
Save As on the File menu.
3. When the Save As dialog box is displayed, type BillPayer in the File
name text box. Click the Save as type box arrow and then click Java
(*.java) in the Save as type list. Click the Save in box arrow and then
click 3 1 2 Floppy (A:) in the Save in list.
4. Double-click the Chapter08 folder or a location specified by your
instructor.
The file named BillPayer is saved as a Java source code file in the Chapter08
folder on the Data Disk in drive A (Figure 8-5). Your display
may differ.
1. To start TextPad,
click the Start
button, click TextPad
on Start menu
2. To view line
numbers, press
CTRL + Q , L
3. To save, press F 12
4. To save, press ALT + F ,
A
Save As
dialog box
Chapter08
folder
Save in
box arrow
Save button
Save as type
is Java (*.java)
file name
FIGURE 8-5
5. Click the Save button in the Save As dialog box.
 
Search WWH ::




Custom Search