gpt4 book ai didi

java - 带有 Synthetica Aluoxide 的 jxdatepicker 外观和感觉不工作

转载 作者:行者123 更新时间:2023-11-30 07:15:53 24 4
gpt4 key购买 nike

我在 netbeans 中创建了一个简单的框架,并使用了 SyntheticaAluOxide 外观。

然后我将 JXDatePicker 从调色板添加到框架;

现在当我尝试运行代码时。该程序抛出异常为:

UIDefaults.getUI() failed: no ComponentUI class for: org.jdesktop.swingx.JXMonthView[,0,0,0x0,invalid,alignmentX=0.0,alignmentY=0.0,border=,flags=0,maximumSize=,minimumSize=,preferredSize=]
java.lang.Error
at javax.swing.UIDefaults.getUIError(UIDefaults.java:731)
at javax.swing.MultiUIDefaults.getUIError(MultiUIDefaults.java:130)
at javax.swing.UIDefaults.getUI(UIDefaults.java:761)
at javax.swing.UIManager.getUI(UIManager.java:1013)
at org.jdesktop.swingx.plaf.LookAndFeelAddons.getUI(LookAndFeelAddons.java:383)
at org.jdesktop.swingx.JXMonthView.updateUI(JXMonthView.java:789)
at org.jdesktop.swingx.JXMonthView.<init>(JXMonthView.java:320)
at org.jdesktop.swingx.JXMonthView.<init>(JXMonthView.java:257)
at org.jdesktop.swingx.JXDatePicker.initMonthView(JXDatePicker.java:361)
at org.jdesktop.swingx.JXDatePicker.init(JXDatePicker.java:353)
at org.jdesktop.swingx.JXDatePicker.<init>(JXDatePicker.java:281)
at org.jdesktop.swingx.JXDatePicker.<init>(JXDatePicker.java:232)
at com.test.DatePickerDemo.initComponents(DatePickerDemo.java:33)
at com.test.DatePickerDemo.<init>(DatePickerDemo.java:21)
at com.test.DatePickerDemo$1.run(DatePickerDemo.java:89)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:727)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:688)
at java.awt.EventQueue$3.run(EventQueue.java:686)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:697)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

我用过Synthetica提供的swingx库。还添加了 Addon jar。

请帮帮我。

最佳答案

我也有过这个异常(exception),但已经是几年前的事了。我记得它是因为当你只有 Synthetica 核心的许可时,Synthentica 似乎正在强制使用其 SwingX 扩展,我对此“不感兴趣”。事实证明情况并非如此(因为我现在正在使用 Synthetica 核心 + SwingX),但我的内存让我无法摆脱那个异常。通过源代码搜索 inf 也无济于事,因此也许可以向 Jyloo 发送电子邮件。

关于java - 带有 Synthetica Aluoxide 的 jxdatepicker 外观和感觉不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17467188/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com