Skip to content

jindrapetrik/javactivex

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 

javactivex

ActiveX Controls in Java.

Library Compilation

  1. Compile server in libsrc/ActiveXServer with Turbo Delphi or later
  2. Compile client in main directory with Ant or Netbeans. Java 7 is needed.

Library Usage

  1. Get the GUID of ActiveX component you want to use. Guid is the string in format
    "{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}"
  2. Run com.jpexs.javactivex.ActiveX.generateClassFromTLB(GUID,outdir,pkg), it generates neccessary interfaces
  3. Create an instance of java.awt.Panel to place control in
  4. 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

Running example

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.

Warning

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.

License

GNU LGPLv3