Apr 7, 2012

AppletViewer


You can use the AppletViewer to test applets in a runtime environment. The AppletViewer takes HTML files that refer to the applet and displays them. The only option for AppletViewer is -debug. This starts the AppletViewer in the jdb.

To invoke the AppletViewer, change to the directory of the HTML file in which the applet is embedded and type the following command:

    appletviewer filename.html

The AppletViewer program has a few menu options that you can use while it is running. Its menu also allows you to set network and security properties for appletviewer. Below Table lists the AppletViewer menu options and their descriptions.


Option
Function
Restart
Runs the loaded applet again.
Reload
Reloads the applet from disk. Useful if the class has changed since it was loaded.
Clone
Creates a new window based upon command-line arguments for the first.
Tag
Shows the applet tag used in the HTML document to start the applet.
Info
Provides any information about the applet that is available.
Properties
Allows the different configurations to be set for AppletViewer.

AppletViewer's properties are outlined in Below Table They provide the network and security options of AppletViewer.


Option
Property
Http proxy server
required
Http proxy port
required
Firewall proxy server
required
Firewall proxy port
required
Network access
Several levels-no access, only access to applet's host, unrestricted access
Class access
restricted or unrestricted





0 comments :

Post a Comment