The HTMLControls sample demonstrates Java™ updating HTML controls. The HTML controls are created using tags on the HTML page.
In this sample, the Java applet sets the properties of the HTML controls on the same HTML page. The controls shown in this sample are:
If the HTML file is run from Microsoft Developer Studio, the class files are also trusted. This can be very helpful during applet development. However, to deliver your applet to other users, you must put it in a signed CAB file.
When run as an application, the class file must already be on your machine. When run as an applet, the class file may be downloaded to your machine. There is a potential security threat running downloaded software. To run a Java applet that uses COM components, the applet code must be trusted. For more information on trusted class files, see the CabAndSign sample.
Return to the top of this article.
To run the HTMLControls sample:
If you get the error message java.lang.VerifyError:
If you get the error message ClassNotFoundException:
If you get the error message UnsatisfiedLinkError:
This sample includes the following files.
Project files: