How do you remove the dotted line around the currently selected tab on a JTabbedPane.
For example:
See the dotted line around it?
How do you remove the dotted line around the currently selected tab on a JTabbedPane.
For example:
See the dotted line around it?
I believe what is needed will depend on the LnF you're using.
You'll want to create a custom
TabbedPaneUI class, probably
overriding the one in your chosen
L&F. You might be overriding javax.swing.plaf.basic.BasicTabbedPaneUI
.
paintFocusIndicator
, and make it an empty method.myTabbedPane.setUI(myTabbedPaneUI)
try setting the focus colour
UIManager.put("TabbedPane.focus", new Color(0, 0, 0, 0));
or set it to the same colour as the background