是否可以将处理窗口(java 3d)附加到像面板一样的摇摆单元? [英] is it possible to attach a window from processing(java 3d) into a swing unit like a panel?

查看:139
本文介绍了是否可以将处理窗口(java 3d)附加到像面板一样的摇摆单元?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将另一个窗口附加到我现有的 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.

推荐答案

来自 processing.core.PApplet


处理在 Frame 中运行,而不是
JFrame 。但是,没有什么可以
阻止你将 PApplet
嵌入到 JFrame 中,它是只是基础
版本使用常规AWT帧
,因为在该上下文中根本不需要
Swing。

Processing runs in a Frame and not a JFrame. However, there's nothing to prevent you from embedding a PApplet into a JFrame, 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屋!

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