Width « Button « Java Swing Q&A





1. Java: Can't get JButton to be horizontally snug around text    stackoverflow.com

I have a JButton that is much wider than the text I put into it. I've researched this, and I keep finding the suggestion that I use Jbutton.setMargin(new Insets(0,0,0,0)); ...