开发者

How to do gui transplantation in Java?

开发者 https://www.devze.com 2023-03-23 12:05 出处:网络
I have a Qt(c++) and FLTK (lua) GUI running. And i have Java AWT/Swing GUI running, side by side in a Desktop.

I have a Qt(c++) and FLTK (lua) GUI running. And i have Java AWT/Swing GUI running, side by side in a Desktop.

How can i now inject the Qt/FLTK GUI window A-Z to my JAva Window or JWindow? So that it becomes such tree:

JWindow
|_ Third party (Qt/FLTK windows)
   |_ Button pressed on QT triggers its own c++ functions
   |_ Button pressed on FLTK triggers its own lua functions
|
|_ Watching them side by side in on开发者_Python百科e main window (java)

Thanks


There is no built-in way to do this in AWT/Swing.

Since you're on Linux, you might be able to do something like this using XEmbed.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号