I prefer buttons with minimal margins, about as wide as their text caption. Is there a way to achieve that in a JButton in Swing?
What I am seeing in practice now is tha
I believe setMargin is what you're looking for.
myButton.setMargin(new Insets(0, 0, 0, 0));