[java] What UI toolkit would you choose for a 2D game?

Started by
3 comments, last by Frederick 15 years, 11 months ago
Hi ppl, I'm searching for a nice simple UI toolkit (think Swing, AWT, SWT) to be used in a 2D game. The requirements are roughly these (sorted by requirement weight descending): - ease of use (xml layout definition is definitely a plus ;) ) - feature completness (has all usuall thingies with option to add your own) - looks good out-of-the-box (maybe even skinnable) Anyone knows a good candidate? Thanks a lot for sharing your thoughts. P
Petr Stedry
Advertisement
I'm using Swing with my latest project. I can customize the looks where I need to, have good UI building tools available, and it's quite complete in features.

I do not consider Swing a prime game UI toolkit though. It was just readily available, I knew it beforehand, and I liked the tools. That's mostly why I took Swing.
I would use swing combined with the substance library, link here: https://substance.dev.java.net/ .
It supports pretty much everything you will need, and looks very pretty for games.

Keep in mind substance is a bit slow to load, and might be a little bit sluggish at times (you can do careful optimization to get around this), though it has gotten much better with later releases. Also the backed is swing based which is pretty rock solid feature wise.
Hard Rockhttp://www.starsdev.com
Thanks a lot guys!

Will give Swing another look, then. I'm quite familiar with it and those dark skins (Raven in particular) look good out of the box!

P
Petr Stedry
What about this one:

http://www.fenggui.org/doku.php

Seems to be exactly what you are looking for.

You may also look at:
http://www.lwjgl.org/
and
http://slick.cokeandcode.com/

Of course only if you are willing to spent some time to pick up OpenGL. Although the slick 2D library will help you get around that.

This topic is closed to new replies.

Advertisement