Re: Embedding an OCX into a JFrame

Josh Passenger <[email protected]> Wed, 3 Jan 2007 11:34:27 +1000
Newsgroups gmane.comp.windows.devel.jawin
Message-ID <[email protected]>
Hi Mark,

I have never used Jawin to imbed activex inside a JFrame, but I think there
is an example embedding internet explorer?

If not, try another product, Jawin is good for on the metal dll and com
access but is perhaps not as mature in terms of UI wrapping, unfortunately,
most of the products that do this well are not free / open source.

The main issue I can see you running into is embedding a heavy weight native
ocx control inside a lightweight Swing JFrame, mixing light and heavy weight
components without some thought using leads to trouble, especially with
repainting of overlaid menus and other things you don't find out about until
you really test the implementation =]

Good luck,

Josh


>
>I have an OCX that I need to embed into my java swing application.  I have
>used jawin in the past to access dll's, but I can't figure out how to do
>something like:
>
>jFrame.getContentPane.add(ocx)
>
>Mark.

_________________________________________________________________
Advertisement: Meet Sexy Singles Today @ Lavalife - Click here
http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Flavalife9%2Eninemsn%2Ecom%2Eau%2Fclickthru%2Fclickthru%2Eact%3Fid%3Dninemsn%26context%3Dan99%26locale%3Den%5FAU%26a%3D23769&_t=754951090&_r=endtext_lavalife_dec_meet&_m=EXT