Java swing gui and lwjgl

2020-04-12 13:00发布

A simple question: Is it possible to view gui of java Swing library and lwjgl 3D scene in the same window without using any additional gui libraries? How?

标签: java lwjgl
1条回答
家丑人穷心不美
2楼-- · 2020-04-12 13:01

You can use the method Display.setParent(java.awt.Canvas) to put the LWJGL display on a canvas. You can then incorporate this canvas into your Swing GUI. Please note that there may be slight performance issues with said approach.

查看更多
登录 后发表回答