用Java显示C ++程序 [英] Display C++ program in Java

查看:46
本文介绍了用Java显示C ++程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆