2010-09-14 44 views
2

如何在Linux上获得与我的KDE或Gnome配置文件相关的正确颜色?如何在Linux上获取用户定义的系统颜色?

java.awt.SystemColor似乎给我root(?)帐户的颜色,至少颜色定义不符合我的设置(而在Windows上一切正常)。

是否有任何API让我从Java访问当前用户的Window Manager颜色设置?

回答

1

查看this页面,尤其是this页面!

+0

你能否提供更新的链接? – codejammer 2012-11-15 02:53:14

+1

Arhived [here](http://web.archive.org/web/20110627190622/http://nadeausoftware.com/articles/2009/12/java_tip_how_use_systemcolors_access_os_user_interface_theme_colors)和[here](http://web.archive.org) /web/20110627190258/http://nadeausoftware.com/articles/2010/06/java_tip_systemcolors_linux_kde_user_interface_themes#DealingwithKDESystemColorproblems) – dacwe 2012-11-15 10:52:09

相关问题