Applets
Develop and test
Test with Applet Viewer
An applet in the Applet Viewer
How to test an applet with the Applet Viewer
- The Applet Viewer that's included in the JDK lets you test an applet before you run it in a browser.
- When you run the Applet Viewer, you will see the applet but you won't see any other elements that are defined by the HTML page.
How to run the Applet Viewer from TextPad
- Open the source code file for the applet. Then, select the Run Java Applet command from the Tools menu or press Ctrl+3.
- If you have not created an HTML page for the applet or the page is stored in a different directory than the applet, TextPad will automatically create a temporary HTML page for you. Otherwise, the Applet Viewer will use the existing HTML page.
How to run the Applet Viewer from the command prompt
- Start the command prompt, and navigate to the directory that contains the HTML page you want to test. Then, enter the appletviewer command followed by the name of the HTML page: C:\java1.5\ch18\FutureValue>appletviewer future_value.html