Java Reference
In-Depth Information
create an object of this class inside the applet's
init
method;
use method
setContentPane
of class
JApplet
to make the above object the content
pane for the applet.
Fig. 12.2
Output from
AppletGreeting
under Google Chrome
Fig. 12.3
Output from
AppletGreeting
under IE9
Method
paintComponent
is executed automatically by the browser.
Now that the reader is familiar with the basic creation of an applet, it seems
Search WWH ::
Custom Search