ActiveX Controls in Java.
- Compile server in
libsrc/ActiveXServerwith Turbo Delphi or later
- Compile client in main directory with Ant or Netbeans. Java 7 is needed.
- Get the GUID of ActiveX component you want to use. Guid is the string in format
com.jpexs.javactivex.ActiveX.generateClassFromTLB(GUID,outdir,pkg), it generates neccessary interfaces
- Create an instance of java.awt.Panel to place control in
- Create an instance of ActiveX control with
com.jpexs.javactivex.ActiveX.createObject(InterfaceName.class,panel)to create control of InterfaceName class on the previously created panel
In the package
com.jpexs.javactivex.example are three examples how to use some ActiveX controls - Shockwave Flash, WebBrowser (Internet Explorer) and Windows Media Player.
It is all EXPERIMENTAL. Some of the features are still missing. For example record types (UDT), Array types.
Also it works on Windows only obviously.