我想将另一个窗口附加到我现有的 JFrame
或 JComponent
或任何东西中,有什么办法可以做到吗?
编辑:不,正如标题所说,攻击 Processing “显示窗口”,处理基本上是在 java 中使用 3d 进行处理并可视化 3d 窗口。每当运行处理时,它都有自己的窗口,我想将它附加到我的 GUI 上。我该怎么做。
最佳答案
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 - 是否可以将一个窗口从处理(java 3d)附加到像面板一样的 Swing 单元中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6146986/