Java Reference
In-Depth Information
To Create the BillPayer Window
1. Enter the code from Figure 8-7 on page 495.
The TextPad window displays the comments, import statements, and class
header (Figure 8-9).
block comment
import statements
class header
FIGURE 8-9
2. Enter the code from Figure 8-8.
The TextPad window displays the main() method and the stub for both the
BillPayer() and actionPerformed() methods (Figure 8-10).
main() method
header
Motif Look
and Feel
assigned
try block
BillPayer
constructor
catch block
BillPayer
constructor
method
attributes
set
setDefaultCloseOperation()
method
actionPerformed()
method
FIGURE 8-10
closing brace
for class
 
Search WWH ::




Custom Search