Make one GUI containing java and C++ componants ?

B

bart59

Hello,

I have two application:
one in java, which use awt and wing componants as a GUI.
one in C++, which is a 3d engine, then it display in a window a 3D
modele.

I'm looking for a solution to combine these two interfaces in one
containing the Java componant + the C++ window .

Is there a way to manage with that?

JNI doens t seem to be the good approach, it should be difficult to
render the c++ output in a java component: moreover, interactions with
the mouse are required in the ed engine...

I heard about python, but I can t see the real advantage that can give
me python.

Any solution?

thank you very much for your help.

Bart
 
A

Alf P. Steinbach

* (e-mail address removed) (bart59) schriebt:
I have two application:
one in java, which use awt and wing componants as a GUI.
one in C++, which is a 3d engine, then it display in a window a 3D
modele.

I'm looking for a solution to combine these two interfaces in one
containing the Java componant + the C++ window .

Is there a way to manage with that?

JNI doens t seem to be the good approach, it should be difficult to
render the c++ output in a java component

Use the AWT native interface, that's what it's there for.

moreover, interactions with the mouse are required in the ed engine...

This I think you will have to manage by passing mouse events from Java to
C++ using ordinary JNI, but it's been a long time since I did such things.
 

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

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top