Testing your installation
Now after all this preparation, let's see if our installation works. We would want to test both Java applets, and Java applications since each are handled differently by your system, and the Java environment. A Java application is just what the name implies-a stand-alone Java program that is executed on your system by using the Java Interpreter. A Java applet is usually a remote Java program executed by a Web Browser (Netscape 2.0 for example). wow goldThe Browser locates the applet by referencing its HTML tag (<applet code="myApplet" width = somewidth height = someheight> </applet>) embedded in a Web Page.
Testing with a Java applet.
There is no better way to test our installation on an applet, than to actually write one. The following applet is a fairly simple one, and there is no need to skip to chapter 16 so that you can understand applets better and then return to this test.
FancyHello.java
Follow the these steps to test an applet in the Java environment.
Creating a test applet.
Using an editor (I use MS DOS Editor) create a new file called FancyHello.java by typing in the following:
» Leave a comment
- Your E-mail address is never displayed. If you enter it, it will only be visible to the blog author
- The line and paragraph breaks automatically