tags:

views:

40

answers:

1

Hi everyone!

For my current project, i'm using Swing and the Nimbus look and feel. The look and feel draws focus rects that look 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

+1  A: 

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.

trashgod
Thanks a lot! That worked fine for me.
BloodySmartie