Subtle Development Space
Subtle Development Space

Reputation: 1254

Java swing gui and lwjgl

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?

Upvotes: 2

Views: 3270

Answers (1)

Oskar
Oskar

Reputation: 1331

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.

Upvotes: 3

Related Questions