简体   繁体   中英

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).

Here is a good solution:

https://stackoverflow.com/a/21258666

It uses LWJGLCanvas to embed libGDx inside a JPanel

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM