Fifth International World Wide Web Conference
Notes on Mortgage Applet
- The
init
method lays out the initial contents of the
screen
- Three Labels associated with three TextFields
- Correspond to input prompts in application version
- Place for the user to enter (hopefully) numeric data
- Button (labelled "Compute") to signal that the fields have been
filled in
- Program could also respond to the event of each field being filled in
- Complete application when numeric data in all three fields detected
action
method determines if the "Compute" button
was pushed
- Uses
update
method to perform actual computation
- Screen display is automatically updated to reflect the contents of the
message area (msg)
- update method performs some computations as the main method in application
version
- Checks for all fields being filled in
- Performs the actual mortgage calculations
- Output into scrolled window, so any number of months may be displayed