Java Reference
In-Depth Information
65
The applet viewer only shows the applet, not the HTML text (see An Applet in
the Applet Viewer).
You view applets with the applet viewer or a Java-enabled browser.
You can also show the applet inside any Java 2ȋenabled web browser, such as
Netscape or Mozilla. (If you use Internet Explorer, you probably need to
configure it. By default, Microsoft supplies either an outdated version of Java
or no Java at all. Go to the web site [ 4 ] and install the Java plugin.) An Applet
in a Web Browser shows the applet running in a browser. As you can see, both
the text and the applet are displayed.
2.13 Ellipses, Lines, Text, and Color
In Section 2.12 you learned how to write a program that draws rectangles. In this
section you will learn how to draw other shapes: ellipses and lines. With these
graphical elements, you can draw quite a few interesting pictures.
Search WWH ::




Custom Search