jbutton remove selection border code example Example: jbutton remove selection border yourJButton.setFocusPainted(false);