Java Reference
In-Depth Information
valid
numeric data
FIGURE 4-64
6. Click the In-Store Sales option button.
The itemStateChanged() method, which is triggered by the click of the
option button, causes the commission calculation to be performed. The
applet displays the answer in an output message (Figure 4-65).
Close
button
option button
selected
commission
output
display
OTHER WAYS
1. To compile, press
CTRL + 1
2. To compile at
command prompt,
type javac
Commission.java
3. To run, press CTRL + 3 ,
choose file, click Yes
button
4. To run at command
prompt, type
appletviewer
CommissionApplet.
html
FIGURE 4-65
7. Click the Close button in the Applet Viewer title bar and, if necessary,
click the Close button in the command prompt window title bar.
 
Search WWH ::




Custom Search