是否可以将处理窗口(java 3d)附加到像面板一样的摇摆单元? [英] is it possible to attach a window from processing(java 3d) into a swing unit like a panel?
问题描述
我想将另一个窗口附加到我现有的 JFrame
或 JComponent
或其他什么,有什么方法可以做那个?
I want to attach another window into my existing JFrame
or JComponent
or anything, is there any way to do that?
编辑:不,当我的意思是标题说,攻击处理'显示窗口',处理基本上是用java中的3d做东西并可视化3d窗口。每当处理运行时它都有自己的窗口,我想将它附加到我的GUI上。我怎么能这样做。
no when i mean as the title says, attack a Processing 'display window', processing is basically doing stuff with 3d in java and visualising a 3d window. Whenever processing is run it has its own window and i want to attach it on my GUI. How can i do that.
推荐答案
处理在
Frame
中运行,而不是
JFrame
。但是,没有什么可以
阻止你将PApplet
嵌入到JFrame
中,它是只是基础
版本使用常规AWT帧
,因为在该上下文中根本不需要
Swing。
Processing runs in a
Frame
and not aJFrame
. However, there's nothing to prevent you from embedding aPApplet
into aJFrame
, it's just that the base version uses a regular AWT frame because there's simply no need for Swing in that context.
这篇关于是否可以将处理窗口(java 3d)附加到像面板一样的摇摆单元?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!