from
JButtons API
you can to useJButton.setFocusable()
and withJButton.setBorderPainted(false);
from
UIManager
have to override key (valid for whole JVM instance)
.
UIDefaults defaults = UIManager.getLookAndFeelDefaults();
defaults.put("Button.focus", new ColorUIResource(new Color(0, 0, 0, 0)));
- I'd to suggest to change
Color
withtransparency
(4th paramater in a.m. code) to another more decentColor
, otherwise you can't to see focus for any of `JButtons