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