开发者

How to deactivate focus rects on one component in Swing/Nimbus

For my current project, i'm using Swing and the Nimbus look and feel. The look and feel draws focus rects that l开发者_JAVA百科ook great on buttons, text fields and so on. Unfortunately, a focus rect is also drawn on any tab of a TabbedPane.

How can i deactivate drawing the focus rect around those tabs?

Thanks in advance,

David


This seems to be handled by

com.sun.java.swing.plaf.nimbus.TabbedPaneTabbedPaneTabPainter

You might be able to replace the Focused one(s), but I haven't tried it. Here are the TabbedPane UI defaults, as well as links to some examples.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜