title: Can I make Swing JButtons have smaller margins?
body: <p>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?</p>
  
  <p>What I am seeing in practice now is that even if I try to use setMaximumSize() and similar, it just ends up eating the text caption, cutting it off to the right. But it does not reduce the margins.</p>