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