gpt4 book ai didi

java - Substance LookAndFeel 字体问题

转载 作者:行者123 更新时间:2023-12-01 09:24:43 31 4
gpt4 key购买 nike

所以,我使用了 Substance LookAndFeel 皮肤之一。对于4.0版本的物质库,不存在这样的问题。然而,从那里开始,我第一次注意到它是在 4.3 中,它时不时地出现。然后,当我跳上新版本 - 6.17.2.1 时,它在 100% 的时间内都是持久的。使用任何其他 L&F 都不会出现任何问题,这显然意味着该问题是Substance 中的错误。搜索了一下,发现其他人也有同样的经历。

遗憾的是,根据 this ,开发已陷入停滞。 .

然而,异常(exception)情况是:

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at sun.font.FontDesignMetrics$MetricsKey.init(FontDesignMetrics.java:217) at sun.font.FontDesignMetrics.getMetrics(FontDesignMetrics.java:286) at sun.swing.SwingUtilities2.getFontMetrics(SwingUtilities2.java:1113) at javax.swing.JComponent.getFontMetrics(JComponent.java:1626) at sun.swing.MenuItemLayoutHelper.reset(MenuItemLayoutHelper.java:126) at javax.swing.plaf.synth.SynthMenuItemLayoutHelper.(SynthMenuItemLayoutHelper.java:119) at javax.swing.plaf.synth.SynthGraphicsUtils.getPreferredMenuItemSize(SynthGraphicsUtils.java:437) at javax.swing.plaf.synth.SynthMenuItemUI.getPreferredMenuItemSize(SynthMenuItemUI.java:216) at javax.swing.plaf.basic.BasicMenuItemUI.getPreferredSize(BasicMenuItemUI.java:367) at javax.swing.JComponent.getPreferredSize(JComponent.java:1662) at javax.swing.BoxLayout.checkRequests(BoxLayout.java:484) at javax.swing.BoxLayout.preferredLayoutSize(BoxLayout.java:301) at javax.swing.plaf.basic.DefaultMenuLayout.preferredLayoutSize(DefaultMenuLayout.java:60) at javax.swing.plaf.synth.SynthMenuLayout.preferredLayoutSize(SynthMenuLayout.java:51) at java.awt.Container.preferredSize(Container.java:1796) at java.awt.Container.getPreferredSize(Container.java:1780) at javax.swing.JComponent.getPreferredSize(JComponent.java:1664) at javax.swing.JMenu.getPopupMenuOrigin(JMenu.java:377) at javax.swing.JMenu.setPopupMenuVisible(JMenu.java:343) at javax.swing.JPopupMenu.menuSelectionChanged(JPopupMenu.java:1478) at javax.swing.MenuSelectionManager.setSelectedPath(MenuSelectionManager.java:125) at javax.swing.plaf.basic.BasicMenuUI.appendPath(BasicMenuUI.java:222) at javax.swing.plaf.basic.BasicMenuUI.access$200(BasicMenuUI.java:49) at javax.swing.plaf.basic.BasicMenuUI$Handler.mousePressed(BasicMenuUI.java:461) at java.awt.Component.processMouseEvent(Component.java:6532) at javax.swing.JComponent.processMouseEvent(JComponent.java:3324) at java.awt.Component.processEvent(Component.java:6300) at java.awt.Container.processEvent(Container.java:2236) at java.awt.Component.dispatchEventImpl(Component.java:4891) at java.awt.Container.dispatchEventImpl(Container.java:2294) at java.awt.Component.dispatchEvent(Component.java:4713) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4522) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466) at java.awt.Container.dispatchEventImpl(Container.java:2280) at java.awt.Window.dispatchEventImpl(Window.java:2750) at java.awt.Component.dispatchEvent(Component.java:4713) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758) at java.awt.EventQueue.access$500(EventQueue.java:97) at java.awt.EventQueue$3.run(EventQueue.java:709) at java.awt.EventQueue$3.run(EventQueue.java:703) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86) at java.awt.EventQueue$4.run(EventQueue.java:731) at java.awt.EventQueue$4.run(EventQueue.java:729) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:728) at org.graffiti.editor.GlobalHotkeyManager.dispatchEvent(GlobalHotkeyManager.java:65) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

我知道那里没有任何物质类别的踪迹,这使得追踪变得更加困难。

如果有人知道我可以在哪里举报,他/她会很乐意分享。

如果我在投入时间修复其他一些令人讨厌的错误后需要放弃它,或者回退到遥远的 2007 年的最后一个工作版本 - 4.0,那将是一件遗憾的事。

此外,最糟糕的是 - 有 a major bugfix关于4.3_02中的InternalFrames,实际上属于字体错误版本。

有什么建议或修复建议吗?

最佳答案

如果这对您来说还不算太晚,请通过 https://github.com/kirill-grouchnikov/substance/issues 提交错误。万一它发生在最新的 7.1dev 版本下。

看起来这种情况发生在 Substance 和基于 Synth 的外观(Nimbus?)之间的外观切换期间。我需要查看一个可以重现此问题的示例应用程序,以便可以修复它。

关于java - Substance LookAndFeel 字体问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39931500/

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