我在设置 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();
}
最佳答案
看来你的lookAndFel仅受Mac支持,因为它在他内部进行了卡编码以加载.plist(特定于Mac),即使他在Windows上也是如此。
您可以编写lookandfeel的windows实现 你可以写信给开发者来写。 仔细检查您在 Windows 上安装的版本。
关于java - 无法在java中设置quaqua外观,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16719028/