Overview
About 80 percent of the functionality of the HotJava Browser is provided by four JavaBeans components: one very large and the other three quite simple. These components may be used anywhere that the display or browsing of documentation is useful: from e-mail systems and help viewers to data reporting and kiosks.Example UseBy far the richest component of the four is the HotJava HTML Component. It provides the ability to parse HTML and then render it in a panel subject to a large number of configuration properties. Setting its idea of the "current document" by one of several methods will cause navigation to the specified URL. The HotJava Document Stack Bean primarily allows the "forward" and "back" navigation familiar to browsers. The stack listens for events from components like pushbuttons in order to manipulate its idea of "current position" among the visited documents. The HotJava Authenticator Bean may simply be added to the same container to allow connections to secure sites. The HotJava System State Bean provides the interface by which users may access system properties of the HTML component.
This document is a jumping-off point for developers assumed to be familiar with JavaBeans. The following reference pages are intended for both "component assemblers" who will be instantiating and connecting the beans in builder applications as well as Java developers who will be programatically accessing the components. If terms like property, event, method, introspection, or serialization are unfamiliar, you may want to refer to the JavaBeans documentation and take the JavaBeans tutorial.
For an example of using the components see Getting Started with the HTML Component in the BeanBox.Note
On Windows there may exist a problem where the JDK's JRE (Java Runtime Environment) does not consistently derive the correct home directory. The JDK uses HOME and the JRE composes the directory from HOMEDRIVE and HOMEPATH. To solve this, it is recommended that you explicitly set these environment variables to be consistent. For example:Component Reference PagesHOME=c:\home
HOMEDRIVE=c:
HOMEPATH=\home
Authenticator Bean - allows connections to secure sites Document Stack Bean - forward and back navigation among visited documents HotJava HTML Component - HTML parsing and rendering in a Panel HotJava System State Bean - allows connections to secure sites See Also
HotJava Delegating Security Manager - allows a developer-provided security manager to co-exist with the HotJava HTML Component's security manager