日期:2014-05-20  浏览次数:20912 次

为什么 导入substance6.0后运行官方实例报错请高手看看(5.2的没问题)

/*

*Returns: 

*All available skins. Key - skin display name, value - skin information. 
JAVA 版本
C:\Documents and Settings\Administrator>java -version
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) Client VM (build 16.3-b01, mixed mode, sharing)
*/

/*
Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: org/pushingpixels/trident/ease/TimelineEase
at org.pushingpixels.lafwidget.animation.AnimationFacet.<init>(AnimationFacet.java:54)
at org.pushingpixels.lafwidget.animation.AnimationFacet.<clinit>(AnimationFacet.java:61)
at org.pushingpixels.substance.api.SubstanceLookAndFeel.<clinit>(SubstanceLookAndFeel.java:153)
at SetSkin_ClassName$2.run(SetSkin_ClassName.java:62)
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)
Caused by: java.lang.ClassNotFoundException: org.pushingpixels.trident.ease.TimelineEase
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 12 more
*/

import java.awt.BorderLayout;
import java.awt.Component;
import java.awt.FlowLayout;
import java.util.Vector;

import javax.swing.JComboBox;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.JPanel;
import javax.swing.SwingUtilities;

import org.pushingpixels.substance.api.SubstanceLookAndFeel;
import org.pushingpixels.substance.api.renderers.SubstanceDefaultComboBoxRenderer;
import org.pushingpixels.substance.api.skin.BusinessBlackSteelSkin;
import org.pushingpixels.substance.api.skin.SkinInfo;

/**
 * Test application that shows the use of the
 * {@link SubstanceLookAndFeel#getAllSkins()} API.
 * 
 * @author Kirill Grouchnikov
 * @see SubstanceLookAndFeel#getAllSkins()
 */
public class GetAllSkins extends JFrame {
  /**
   * Creates the main frame for <code>this</code> sample.
   */
  public GetAllSkins() {
    super("Get all skins");

    setLayout(new BorderLayout());

    final JPanel panel = new JPanel(new FlowLayout());
    // Get all skins and set the vector as a model
    // for combobox.