Java Reference
In-Depth Information
<APPLET CODE="SimpleGraphics.class"
WIDTH = 500
HEIGHT = 250>
Here's the output from the appletviewer (Fig. 12.4 ):
Fig. 12.4 Output from
SimpleGraphics under the
The output from IE9 is shown in Fig. 12.5 .
Fig. 12.5 Output from the SimpleGraphics applet under IE9
The above example does little more than could be achieved with HTML alone.
In particular, there is no interaction with the user. The next example is a rather more
practical applet that involves some interaction with the user.
Search WWH ::

Custom Search