首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >IllegalArgumentException:在实现Substance LAF期间找不到float的插值器

IllegalArgumentException:在实现Substance LAF期间找不到float的插值器
EN

Stack Overflow用户
提问于 2016-04-29 23:29:18
回答 1查看 185关注 0票数 1

我已经尝试实现了Substance LAF。我还下载了三叉叉库。应用程序将正常启动(从包结构中选择LAF ),但当我尝试使用JMenuBar中的菜单时,我得到下面的异常。

我发现了非常相似的问题,但它肯定是不同的东西- Flamingo ribbon: Java.lang.IllegalArgumentException: No interpolator found for java.lang.Float:java.lang.Float

代码语言:javascript
复制
Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException:     No interpolator found for 
java.lang.Float:java.lang.Float 
 at org.pushingpixels.trident.TimelinePropertyBuilder.getFieldInfo    (TimelinePropertyBuilder.ja 
 va:257) 
 at org.pushingpixels.trident.Timeline.addPropertyToInterpolate    (Timeline.java:353) 
 at org.pushingpixels.trident.Timeline.addPropertyToInterpolate    (Timeline.java:363) 
 at     org.pushingpixels.substance.internal.animation.StateTransitionTracker.onModelStat    eChanged 
 (StateTransitionTracker.java:394) 
 at org.pushingpixels.substance.internal.ui.SubstanceMenuUI$1.mouseEntered        (SubstanceMenuUI.ja 
 va:155) 
 at java.awt.AWTEventMulticaster.mouseEntered(Unknown Source) 
 at java.awt.Component.processMouseEvent(Unknown Source) 
 at javax.swing.JComponent.processMouseEvent(Unknown Source) 
 at java.awt.Component.processEvent(Unknown Source) 
 at java.awt.Container.processEvent(Unknown Source) 
 at java.awt.Component.dispatchEventImpl(Unknown Source) 
 at java.awt.Container.dispatchEventImpl(Unknown Source) 
 at java.awt.Component.dispatchEvent(Unknown Source) 
 at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) 
 at java.awt.LightweightDispatcher.retargetMouseEnterExit(Unknown Source) 
 at java.awt.LightweightDispatcher.trackMouseEnterExit(Unknown Source) 
 at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) 
 at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) 
 at java.awt.Container.dispatchEventImpl(Unknown Source) 
 at java.awt.Window.dispatchEventImpl(Unknown Source) 
 at java.awt.Component.dispatchEvent(Unknown Source) 
 at java.awt.EventQueue.dispatchEventImpl(Unknown Source) 
 at java.awt.EventQueue.access$500(Unknown Source) 
 at java.awt.EventQueue$3.run(Unknown Source) 
 at java.awt.EventQueue$3.run(Unknown Source) 
 at java.security.AccessController.doPrivileged(Native Method) 
 at     java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege    (Unknown Sou 
 rce) 
 at     java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege    (Unknown Sou 
 rce) 
 at java.awt.EventQueue$4.run(Unknown Source) 
 at java.awt.EventQueue$4.run(Unknown Source) 
 at java.security.AccessController.doPrivileged(Native Method) 
 at     java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege    (Unknown Sou 
 rce) 
 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) 

有什么想法吗?

EN

回答 1

Stack Overflow用户

发布于 2016-10-08 08:26:25

经过几个小时的努力,我找到了解决这个问题的办法。错误

java.lang.IllegalArgumentException:找不到java.lang.Float:java.lang.Float的内插器

TimelinePropertyBuilder类中的代码无关。

因此,这里不是寻找它,而是非常需要的trident-plugin.properties

代码语言:javascript
复制
UIToolkitHandler=org.pushingpixels.trident.swing.SwingToolkitHandler
PropertyInterpolatorSource=org.pushingpixels.trident.swing.AWTPropertyInterpolators

UIToolkitHandler=org.pushingpixels.trident.swt.SWTToolkitHandler
PropertyInterpolatorSource=org.pushingpixels.trident.swt.SWTPropertyInterpolators

UIToolkitHandler=org.pushingpixels.trident.android.AndroidToolkitHandler
PropertyInterpolatorSource=org.pushingpixels.trident.android.AndroidPropertyInterpolators

PropertyInterpolatorSource=org.pushingpixels.trident.interpolator.CorePropertyInterpolators

这应该会解决这个问题。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/36942256

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档