Get tf input in Nifty?

hey guys,





i'm sure this has been discussed so far, but i couldn't find anything.



is there any possibility to read out the contents of a textfield in nifty (using jme3)??



i can reference the textfield via


nifty.getScreen("start").findElementByName("myTextfield")



Can somebody help me??

Thanks in Advance,
Fellkneul

got it…







menu.getNifty().getScreen("start").findElementByName("myTextfield").getControl(TextFieldControl.class).getText();



cheers,
Fellkneul


nifty.getScreen("start").findControl("myTextfield", TextFieldControl.class).getText();



should work also and is the same, only a little bit shorter