【问题标题】:can not set quaqua look and feel in java无法在 java 中设置 quaqua 的外观和感觉
【发布时间】:2013-05-19 02:44:11
【问题描述】:

我在设置 quaqua 外观和感觉时遇到了问题,并在 Windows 7 上遇到了这个错误:

Warning: ch.randelshofer.quaqua.util.Preferences failed to load Mac OS X global system preferences
java.io.FileNotFoundException: C:\Users\A.Rahman\Library\Preferences\.GlobalPreferences.plist (The system cannot find the path specified)

这是设置外观的代码:

try {    

        UIManager.setLookAndFeel("ch.randelshofer.quaqua.QuaquaLookAndFeel");
    } catch (Exception e) { e.printStackTrace();
    }

【问题讨论】:

    标签: java windows macos swing look-and-feel


    【解决方案1】:

    你的lookAndFel似乎只支持mac,因为它在他内部是卡编码的,可以加载一个.plist(特定于mac),即使他是在windows上。

    可以编写lookandfeel的windows实现 你可以写信给开发者写。 仔细检查您在 Windows 上安装的版本。

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-07-18
    • 2014-03-19
    • 1970-01-01
    • 2019-03-03
    • 1970-01-01
    相关资源
    最近更新 更多