swing 皮肤substance 6.0的使用问题,在netBeans6.8中运行没问题。但是打包生成.jar以后运行就有问题

 我在程序中用了substance6.0皮肤

这个是我在netbeans6.8中运行的效果

 

但是我到生成.jar文件后运行就包以下错误i

F:\java\sunyan\dist>java -jar sunyan.jar
java.lang.NullPointerException
        at org.pushingpixels.substance.internal.utils.SubstanceColorUtilities.ge
tDefaultBackgroundColor(SubstanceColorUtilities.java:828)
        at org.pushingpixels.substance.internal.utils.SubstanceColorUtilities.ge
tBackgroundFillColor(SubstanceColorUtilities.java:731)
        at org.pushingpixels.substance.internal.ui.SubstancePanelUI.__org__pushi
ngpixels__substance__internal__ui__SubstancePanelUI__installDefaults(SubstancePa
nelUI.java:73)
        at org.pushingpixels.substance.internal.ui.SubstancePanelUI.installDefau
lts(SubstancePanelUI.java)
        at javax.swing.plaf.basic.BasicPanelUI.installUI(Unknown Source)
        at org.pushingpixels.substance.internal.ui.SubstancePanelUI.__org__pushi
ngpixels__substance__internal__ui__SubstancePanelUI__installUI(SubstancePanelUI.
java)
        at org.pushingpixels.substance.internal.ui.SubstancePanelUI.installUI(Su
bstancePanelUI.java)
        at javax.swing.JComponent.setUI(Unknown Source)
        at javax.swing.JPanel.setUI(Unknown Source)
        at javax.swing.JPanel.updateUI(Unknown Source)
        at javax.swing.SwingUtilities.updateComponentTreeUI0(Unknown Source)
        at javax.swing.SwingUtilities.updateComponentTreeUI0(Unknown Source)
        at javax.swing.SwingUtilities.updateComponentTreeUI0(Unknown Source)
        at javax.swing.SwingUtilities.updateComponentTreeUI(Unknown Source)
        at org.pushingpixels.substance.api.SubstanceLookAndFeel.setSkin(Substanc
eLookAndFeel.java:1995)
        at org.pushingpixels.substance.api.SubstanceLookAndFeel.setSkin(Substanc
eLookAndFeel.java:2086)
        at wxgg.jiemian.WelComeWindow$1.run(WelComeWindow.java:132)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)

为什么呢?????

你可能感兴趣的:(netbeans,swing,ui,java)