Schwerwiegend: Uncaught exception thrown in Thread[LWJGL Renderer Thread,5,main]
java.lang.NullPointerException
at com.jme3.app.SimpleApplication.loadStatsView(SimpleApplication.java:190)
at com.jme3.app.SimpleApplication.initialize(SimpleApplication.java:203)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:118)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:189)
at java.lang.Thread.run(Unknown Source)
I'm currently to tired to hunt it, maybe someone has a quick guess why that happens.
Now my question (the reason why I wanted to try the example):
I have a JME Canvas to replace buggy nifty in my editor. It works really well as long as I do not need JTextFields (JButtons and CheckBoxes are working fine). I can click into it and write until the application fully starts. Then the app constantly grabs the focus and thats a little annoying...
I tried out to set the canvas to focusable(false) but that does just work until I click into the scene once. Then no KeyInput comes to my TextField.
And a second question: Is there really no other way than using a canvas to be able to use the maximize function? (Like in Minecraft or in all other Windows Programs with the button next to the x-button^^)
Good luck getting an answer! The only way I’ve made it working is switching to a different program and then back again - at which point controls can get focus until the canvas gets focus. At which point you have to switch again.
(Fortunately I’m only using the canvas in a test harness so I’m able to work around it, it wouldn’t be acceptable in anything an end user sees though!)
Oh, I missed that post (because one day ago I did not plan to use Canvas^^).
it wouldn’t be acceptable in anything an end user sees though!
That's true for my 2 workarounds, too:
Using buttons to type in the numbers (like on a calculator) and a JOptionPane for Textinput (or both). But definitely not a nice solution^^
It looks like you are missing a library, however if you check that and make sure you aren’t then make sure you follow the steps in the instructions exactly and the swing canvas does work - it just has the input focus problem described above.
Most likely you are doing something in the wrong order.
Ok… It does not seem to be a missing library otherwise I would have some red warnings, which I had earlier but fixed. I’ll look a bit deeper in each step. Thanks !
@lewisgreen said:
So should we create it ? And what does this class do ? I realised it is imported with a string, therefore no warning.
found it here, could be useful : http://code.google.com/p/jmonkeyengine/source/browse/branches/jme3/src/test/jme3test/post/TestRenderToTexture.java?r=6417