开发者

selected menuText color

开发者 https://www.devze.com 2023-03-18 01:06 出处:网络
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:

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

精彩评论

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

关注公众号