Chapter 5 Objectives
Sample Applet: GreetingApplet
Template for an Applet Definition
GreetingApplet: Placing GUI Objects
GreetingApplet: Handling Action Events
GreetingApplet as an Action Event Handler
Template for an Action Processing Applet
Registering GreetingApplet
The actionPerformed Method
GreetingApplet Object Diagram
Absolute Positioning of GUI Objects
The setBounds Method
The Button Class
Converting Text to a Numerical Value
Converting Text to a Double Value
Sample Program: Body Mass Index (BMI)
BMIApplet â Design
Loan Calculator â Object Diagram
Loan Calculator-Development Steps
Author: Robert Rittenhouse
E-mail: rob@cs1.mcm.edu
Homepage: http://cs1.mcm.edu/