JBrowser Sample

This sample is located in \Samples\ActiveX\JBrowser.

Description
Using the Sample
Key Project Files
Technologies Demonstrated

Description

This sample is a Java application that hosts the WebBrowser Microsoft® ActiveX® Control in Microsoft® Internet Explorer 4.0 or later and provides an interface similar to Internet Explorer's. The application traps Internet Explorer events to display status and progress information and provides buttons for navigation.

You must have Microsoft® Internet Explorer 4.0 or later installed to use this sample.

Using the Sample

To compile the sample

Use Nmake.exe to compile the Makefile in the \Samples\ActiveX\JBrowser directory.

To run the sample

Use the following command to run the sample:

jview JBrowser.class

You can also use the batch file, Run.bat, to run the sample.

A browser window, similar to Internet Explorer's, opens and displays your default home page. You can navigate using the button bar, or the items on the Go menu.

Key Project Files

JBrowser.java

This class hosts the WebBrowser control, defines the UI, and implements event handlers to respond to user actions and browser actions.

JBrowserOpen.java

This class creates a dialog box in which users can enter a URL.

JAnim.java

This class displays a canvas that contains an animated image.

Technologies Demonstrated

ActiveX/Beans

© 1999 Microsoft Corporation. All rights reserved. Terms of use.