remove jbutton border code example
Example 1: how to remove border on button click
.btnName{
outline: none;
}
Example 2: jbutton remove selection border
yourJButton.setFocusPainted(false);
.btnName{
outline: none;
}
yourJButton.setFocusPainted(false);