Microsoft SDK for Java

ActiveX Samples

Microsoft® ActiveX® is a language-neutral component model that uses COM as its base. The Microsoft virtual machine (Microsoft VM) integrates ActiveX Controls and JavaBeans so that an ActiveX control appears as a Bean to the Java programmer. Similarly, the JavaBeans component appears as an ActiveX control to you and your control container. For more information, see Integrating JavaBeans and ActiveX.

The following ActiveX samples are provided.

Sample Description
AFC Bean Location: \Samples\ActiveX\AFCBean

Technologies: ActiveX, AFC

Demonstrates:

  • Writing a pure AFC object and hosting it inside an ActiveX container.
Calendar Location: \Samples\ActiveX\Calendar

Technologies: ActiveX

Demonstrates:

  • Hosting the Microsoft ActiveX Calendar control in a jview application.
Event Location: \Samples\Scripting\Event

Technologies: Scripting, ActiveX

Demonstrates:

  • Handling events from Java applets using scripting.
Invoke Bean Location: \Samples\ActiveX\Invoke

Technologies: ActiveX

Demonstrates:

  • Hosting the Microsoft ActiveX Calendar control in a jview application.
JBrowser Location: \Samples\ActiveX\JBrowser

Technologies: ActiveX

Demonstrates:

  • Hosting the WebBrowser ActiveX Control in a Java application.
JCalendar Location: \Samples\ActiveX\JCalendar

Technologies: ActiveX

Demonstrates:

  • Creating a complete JavaBean with properties, events, icons, and property editors.
JChart Location: \Samples\ActiveX\JChart

Technologies: ActiveX

Demonstrates:

  • Various techniques used to create JavaBeans.
Organizaton Tree Location: \Samples\Scripting\orgtree

Technologies: Scripting, ActiveX, AFC

Demonstrates:

  • Controlling an applet through scripting.

  • Hosting a JavaBean in an ActiveX container.
Sample Bean Location: \Samples\ActiveX\SampleBean

Technologies: ActiveX, AFC

Demonstrates:

  • Creating a JavaBean that handles simple events and can be added as a control to an ActiveX container.
SimpleOCXControl Location: \Samples\Wfc\SimpleOCXControl

Technologies: WFC, ActiveX

Demonstrates:

  • Creating custom WFC controls.

  • Using WFC controls as Microsoft® ActiveX® Controls.

  • Using Design-time property editors.

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