border around text in button remove java code example Example: jbutton remove selection border yourJButton.setFocusPainted(false);