用Java显示C ++程序 [英] Display C++ program in Java
问题描述
我是JNI的新手,刚刚开始学习它.
I'm new to JNI and just started learning it.
我已经使用JNI
在Java中成功执行了graphical C++ program
.现在,我想尝试更高级的功能,即在JFrame或JPanel中显示该C ++图形程序.
I have successfully executed a graphical C++ program
in java using JNI
. Now i want to try something more advanced which is display that C++ graphical program within JFrame or JPanel.
有可能吗?怎么做?理想情况下,它应该类似于此
Is it possible and how to do it ? Ideally it would be something like this
非常感谢您的回答,如果我的问题含糊不清.
Thanks for answering and sorry if my question is vague.
编辑:这与我的问题在Java GUI中显示C ++窗口
推荐答案
I think I've found a solution from Embed OpenGL inside Java AWT Canvas. Someone please correct me if this is not related.
感谢Jim和user2543253的帮助.
Thank you Jim and user2543253 for your help.
这篇关于用Java显示C ++程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!