Embed Swing App in .Net Application via a Window (form?)

S

swebb99

Hi,

Does anybody have any information on where I can find some details of
how I would go about embedding an existing Java swing application into
the window (form?) of a new .Net application on Windows.

I'd like to take a useful existing java app which I work on day to day
and allow users to view it in a new .Net app the company are working
on.

Is such a thing possible and if so how and what are the constraints
(risizing ?, mouse/keyboard events ? .....)

Thanks

Steve
 
A

Arne Vajhøj

swebb99 said:
Does anybody have any information on where I can find some details of
how I would go about embedding an existing Java swing application into
the window (form?) of a new .Net application on Windows.

I'd like to take a useful existing java app which I work on day to day
and allow users to view it in a new .Net app the company are working
on.

Is such a thing possible and if so how and what are the constraints
(risizing ?, mouse/keyboard events ? .....)

I am afraid that you will need to keep them as two separate apps.

It is possible to use Java code from .NET using the IKVM sofware,
but IKVM does not support Swing, so it will not work for you (it
does work fine for some other types of usage).

Arne
 
S

swebb99

Do you need it to interact with your .NET application in any way other  
than being presented within it?  If not, and if you can make the  
application an applet, then the easiest approach might be to do that and  
then embed it in a basic HTML page displayed by the WebBrowser control.

Pete

Still not decided if it should interact or not but the applet idea
seems like a possible way forward. There is an applet version of the
app that interacts with Javascript, does .Net have anyway of receiving
events from javascript ?

Thanks

Steve
 
S

swebb99

I am afraid that you will need to keep them as two separate apps.

It is possible to use Java code from .NET using the IKVM sofware,
but IKVM does not support Swing, so it will not work for you (it
does work fine for some other types of usage).

Arne

Thats a shame, I'll have a read about IKVM anyway as it might come in
useful at some point.

Thanks

Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top