Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I started making a game (mostly the interface, buttons, panels, components.. etc) and I have been using Swing to make the different components. But I have read that Swing is not good for creating game interfaces.

What is the best way to create game interfaces, like Runescape or Minecraft do?

share|improve this question

closed as not constructive by Byte56, msell, Sean Middleditch, Nicol Bolas, Laurent Couvidou Jun 17 '13 at 12:45

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.

Essentially a duplicate of this:… – Byte56 Jun 16 '13 at 2:24
@nathan does scene2d use the graphics card, instead of the CPU like swing does? – user2444217 Jun 17 '13 at 4:08

The "best" way is a little too subjective to tell.

In my case, I've built an UI library myself, from Panels and Buttons to Lists. I use Java with lwjgl and Slick2D to make my games.

If you don't want to build an UI from scratch, here are some Java libraries you can use.

Tiny SUI:



share|improve this answer
What is needed to create a UI from scratch? How does it work exactly? – user2444217 Jun 16 '13 at 2:19
I used Slick2D's Shapes (Rectangles, Lines) and Images to create basic UI components, like Panels and Buttons. To detect a click, I simply check if that click happened inside the bounds of the object. Other components like TextBoxes aren't that simple to make, so it may take a while to program everything (I haven't made one). I recommend using one of those libraries, as it will save you a lot of time. – Lucas Tulio Jun 16 '13 at 2:32

Not the answer you're looking for? Browse other questions tagged or ask your own question.