BaseStyles.loadStyleResources("GUI/styles/myCoolStyle.groovy");
GuiGlobals.getInstance().getStyles().setDefaultStyle("glass");
[jME3 Main] INFO com.simsilica.lemur.style.BaseStyles - loadStyleResource(GUI/styles/myCoolStyle.groovy)
[jME3 Main] INFO com.simsilica.lemur.style.BaseStyles - Loading base resource:null
8月 15, 2023 1:51:14 下午 com.jme3.app.LegacyApplication handleError
严重: Uncaught exception thrown in Thread[jME3 Main,5,main]
java.lang.NullPointerException: Cannot invoke "java.net.URL.toString()" because "u" is null
at com.simsilica.lemur.style.StyleLoader.loadStyle(StyleLoader.java:162)
at com.simsilica.lemur.style.BaseStyles.loadStyleResources(BaseStyles.java:78)
at GUI.UI.initialize(UI.java:52)
at com.jme3.app.state.BaseAppState.initialize(BaseAppState.java:129)
at com.jme3.app.state.AppStateManager.initializePending(AppStateManager.java:332)
at com.jme3.app.state.AppStateManager.update(AppStateManager.java:362)
at com.jme3.app.SimpleApplication.update(SimpleApplication.java:258)
at com.jme3.system.lwjgl.LwjglWindow.runLoop(LwjglWindow.java:628)
at com.jme3.system.lwjgl.LwjglWindow.run(LwjglWindow.java:717)
at java.base/java.lang.Thread.run(Thread.java:833)
I’ve been tossing it around for a while and realized it’s still not working.