Sign in to follow this  
Petr Stedry

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

Recommended Posts

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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this