StandardGame restart

I have a little Swing app for my settings, and I start my StandardGame from there. After finishing the level I call game.shutdown() and I'm back in this app, but I can't start with a new StandardGame, because the following line in initSystem() blows up with an IllegalStateException:


So I included a test, and after this it worked fine (at least the error is gone) 

  if (JoystickInput.getProvider() == null) {

There are other things wrong, later the textures don't show up (looks cool by the way  :D ).

Hmm, maybe game.shutdown() should do more cleanup (or maybe I shouldn't call this at all???) 

I can add that entry into StandardGame, but I've experience the same problems with re-initting the graphics and I'm not sure how to resolve it.  That last time I was working with this I was trying to make it so you could change resolutions without restarting the application, but textures were disapearing on me.  It's been a long time since I've looked at any of this though.  If you figure out what you need to do during shutdown to fully clean everything up let me know and I'll get it added.

Done and checked in.

Thanks! Now I can at least play around with it.

I had the same "disappearing texture problem", but everything else seems to work fine. Nodes created later (with textures created "on the fly") showed up correctly.

Hmm, any ideas from the gurus?

It's been a while since I've messed with this, but it very well could be that recreating the graphics context loses all the loaded textures and we must load them again.