Damn

i have tryed the whole day to implement a gui in jme. first i tryed to do so with the BUI. well i could only gues how to initalize and use the classes, since there are no tutorials, and the link to source is unvalid.

i have some issues with the famous fenggui, i don't want to adress them here.

and swing i don't know what to say about it.



so please if you could just post a source to a simple BUI application so i can see how to use it. please.

There's the source for tests under com.jmex.bui.tests in the jme-bui source.  That should give you a very good starting point for learning BUI.  I would say look at Layout.java.

all the links supplied to source at this http://samskivert.com/code/jme-bui/ page, aren’t working.

i am downloading svn client, and i shall try to download the source that way…

and i have succseded…  :stuck_out_tongue:

i really have no luck.

i have tryed to compile the simple "LabelTest"



i get the following error as soon as test.start() is called :


java.lang.NoSuchMethodError: com.jme.image.Texture.setNeedsFilterRefresh(Z)V
        at com.jmex.bui.BImage.releaseTexture(BImage.java:323)
        at com.jmex.bui.BImage.release(BImage.java:302)
        at com.jmex.bui.text.AWTTextFactory$1.wasRemoved(AWTTextFactory.java:292)
        at com.jmex.bui.Label$Text.wasRemoved(Label.java:467)
        at com.jmex.bui.Label.releaseText(Label.java:265)
        at com.jmex.bui.Label.recreateGlyphs(Label.java:356)
        at com.jmex.bui.Label.layoutAndComputeSize(Label.java:285)
        at com.jmex.bui.Label.layout(Label.java:203)
        at com.jmex.bui.BLabel.layout(BLabel.java:157)
        at com.jmex.bui.BComponent.validate(BComponent.java:505)
        at com.jmex.bui.BContainer$1.apply(BContainer.java:223)
        at com.jmex.bui.BContainer.applyOperation(BContainer.java:355)
        at com.jmex.bui.BContainer.validate(BContainer.java:221)
        at com.jmex.bui.BContainer$1.apply(BContainer.java:223)
        at com.jmex.bui.BContainer.applyOperation(BContainer.java:355)
        at com.jmex.bui.BContainer.validate(BContainer.java:221)
        at com.jmex.bui.PolledRootNode.updateWorldData(PolledRootNode.java:110)
        at com.jme.scene.Spatial.updateGeometricState(Unknown Source)
        at com.jmex.bui.BRootNode.updateGeometricState(BRootNode.java:248)
        at com.jme.scene.Node.updateWorldData(Unknown Source)
        at com.jme.scene.Spatial.updateGeometricState(Unknown Source)
        at com.jme.app.BaseSimpleGame.initGame(Unknown Source)
        at com.jme.app.BaseGame.start(Unknown Source)
        at bui_proba.LabelTest.main(LabelTest.java:75)

Umm…it works for me.  I know that doesn't help, but are you sure you plugged jME into your build properly?



Add jME Required to the Libraries in Project->Properties->Build Path, as well as jme.jar (binary jme, or just add the jme project if you have it).



Also, be sure the "rsrc" folder is in your binary path for Eclipse (usually "bin").  I'm sure you can change this, but…that's a quick and easy fix (copy+paste, don't just move it to there; sometimes the bin folder gets cleaned out and you'll start seeing exceptions).

bui is really outdated it seems that it uses a method from jME that doesn't exsist.