Iam making a level editor for libgdx.but I want to use the java swing buttons. how can I put the libgdx display inside a JFrame
Asked
Active
Viewed 712 times
-1
-
I'm sorry but what you are asking for isn't really a viable option – Basim Khajwal May 02 '16 at 12:35
1 Answers
0
LibGDX really isn't meant to work with swing components, but LibGDX does provide its own button classes like ImageButton or TextButton that you can use for the same purpose. It does take a little bit more work to set them up because you need to provide the background image and font that the button uses.
See the accepted answer here for how to setup text buttons: