开发者

selected menuText color

I'm using a DefaultDockable, which has a menu bar with a title. I'm using Nimbus Look&Feel, and to set the text color of this 开发者_如何学编程title I'm using:

UIManager.put("menuText", Color.RED);

But what I don't know, is how to set the color when the menu is selected. Nimbus default for that is white, and I want to change it to black.

Having a look at this, I tried with textHighlightText,controlLHighlight, nimbusSelectedText, nimbusLightBackground, and even tried with menuText[selected]. None of them works for this.

How is it called for the selected menuText?


I would try:

Menu[Enabled+Selected].textForeground

This site has a great display of the Nimbus defaults:

http://jasperpotts.com/blogfiles/nimbusdefaults/nimbus.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜