logicq
logicq

Reputation: 13

Libgdx with Java Swing issue

I have a problem with libgdx. I want to use Screen from libgdx to draw game inside JPanel (from Swing, because my all app is written in Swing). I've tried, but I cannot do that. Is it possible? Have you got any code examples?

Please for help and sorry for my english (just in case).

Upvotes: 1

Views: 258

Answers (1)

Bob Light
Bob Light

Reputation: 31

Here is a good solution:

https://stackoverflow.com/a/21258666

It uses LWJGLCanvas to embed libGDx inside a JPanel

Upvotes: 1

Related Questions