The user presses a button and I want to run an asynchronous task, something like SwingWorker. I have been wondering how this is usually done in Nifty. Suggestions?
Thanks.
Nifty is part of the jME3 update loop, so you do multithreading/async like for anything else:
https://wiki.jmonkeyengine.org/legacy/doku.php/jme3:advanced:loading_screen
https://wiki.jmonkeyengine.org/legacy/doku.php/jme3:advanced:multithreading
Ah nice. Thanks a lot :).