Okay, I'm not sure if this problem has popped up on the Substance side or on the JMEDesktop side, but for whatever reason Substance L&F does not seem to be working in the latest CVS version of jME. If I simply add substance.jar to the classpath and then add "UIManager.setLookAndFeel(new SubstanceLookAndFeel());" at the beginning of the main method for HelloJMEDesktop I get the following exception:
java.lang.NullPointerException
at org.jvnet.lafwidget.desktop.DesktopIconHoverPreviewWidget.updateSnapshot(DesktopIconHoverPreviewWidget.java:231)
at org.jvnet.lafwidget.desktop.DesktopIconHoverPreviewWidget.access$300(DesktopIconHoverPreviewWidget.java:52)
at org.jvnet.lafwidget.desktop.DesktopIconHoverPreviewWidget$1.propertyChange(DesktopIconHoverPreviewWidget.java:147)
at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:339)
at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:276)
at java.awt.Component.firePropertyChange(Component.java:7802)
at javax.swing.JComponent.addNotify(JComponent.java:4646)
at java.awt.Container.addNotify(Container.java:2518)
at java.awt.Window.addNotify(Window.java:633)
at java.awt.Frame.addNotify(Frame.java:469)
at java.awt.Window.pack(Window.java:661)
at com.jmex.awt.swingui.JMEDesktop.<init>(JMEDesktop.java:247)
at com.jmex.awt.swingui.JMEDesktop.<init>(JMEDesktop.java:285)
at com.jmex.awt.swingui.JMEDesktop.<init>(JMEDesktop.java:266)
at jmetest.awt.swingui.HelloJMEDesktop.simpleInitGame(HelloJMEDesktop.java:67)
at com.jme.app.BaseSimpleGame.initGame(BaseSimpleGame.java:474)
at com.jme.app.BaseGame.start(BaseGame.java:56)
at jmetest.awt.swingui.HelloJMEDesktop.main(HelloJMEDesktop.java:128)
I've tried 2.3 release and the beta for 3.1 for Substance and they both get this. Also tried in JRE 1.5 and 1.6 without a change. It looks like something has changed in JMEDesktop that might be causing this, but I'll have to rely on my good friend Irrisor to help me determine that one. ;)