Window inside the game

Hi everyone, I suppose this question should have been asked before but I couldn’t find anything, I just want to show a window with buttons and texts inside it as game is running, here there’s an example http://www.mikestutorials.com/ss/2.JPG. I don’t want an options window, it’s a game logic window.

Is there a way this could be done?



Thanks.

You could use JMEDesktop (which uses Swing and has Problems on Mac) or a 3rd party library like FengGUI (currently under active developement) or BUI.

You’ll find a lot of discussion about each of these topics in the forums.



See also this Sticky post: http://www.jmonkeyengine.com/jmeforum/index.php?topic=5735.0

I use JMEDesktop with a Swing GUI, using the "cross platform look-and-feel" (which is Sun's "metal" LnF). Once I started making sure that calls to Swing go through the Swing thread (using invokeAndWait(), mostly), it works fine. I'm not trying it on a Mac, so I can't vouch for that, though, although most reports with the Mac have been using some plug-in LnF that looks more game-like and less Java-like.

There was a post right there and i didn't see it ://. Thank you all, I think I am going to use FengGUI, it seems well documented.

:smiley:

Make sure to use the latest stable jars, and not the svn version because some things in the svn are currently broken/under development.

Do you mean like this?

bad class file: /myProject/lib/FengGUI.jar(org/fenggui/Display.class)
class file has wrong version 50.0, should be 49.0
Please remove or make sure it appears in the correct subdirectory of the classpath.


I'm using FengGUI Alpha 10 (Rev 359) from Setember 30, 2007 and jME 0.11. I think that's because the FengGUI was compiled using java 6 and I am using java 5. I will try to make my own fenggui.jar and see what happens.
}:-@