我正在尝试更改实体外观的文本颜色(实际上我使用的是SubstanceGraphiteGlassLookAndFeel。我不知道该怎么做。
发布于 2012-09-14 03:57:59
最终,你必须弄乱配色方案。
由于您使用的是Graphite Glass皮肤,因此处理配色方案要容易得多,因为它们的值不是在Java代码中设置的。如果您将文件/org/pushingpixels/substance/api/skin/graphite.colorschemes复制到类路径中,则可以进入各种方案定义并将colorForeground条目更改为您想要的任何内容。可能是黑色(#FFFFFF)或各种灰色(#cccccc、#999999、#666666、#333333)。但是因为它们是十六进制的颜色,你可以做任何你想做的事情。
发布于 2012-09-13 20:22:48
Keys in UIManager通过杀死创建这个伟大主题的所有东西- change value for all `Keys` in `UIManager` for all `JComponents` or concrete `JComponent`
- change value for all value in `Highlighter`(s) for all `JComponents` or concrete `JComponent`
- I'm not sure if this theme to use or not the `Trident` too, have to check on former `Kirill's forum`
JComponents实例,必须重复适用于所有JComponents 永远不要为Custom Look and Feels更改Colors或Fonts,必须检查is or isn't是否有由author of L&F实现的直接方式,从来没有尝试过所有的JComponents和这个主题不是我最喜欢的,然后通过消除在Custom L&F中实现的副作用,第二点更安全,但在这种情况下,您可能会松开实现的have
https://stackoverflow.com/questions/12405436
复制相似问题