[Done] Need help for aligning JButton(to fit more text in less space)
I am making a swing application, and I came across a problem.
I created a JButton, used for submitting data from a JTextField.
I then realized that the button was 1.5 times as wide as the text.
All I want is a small button that isn't so wide.
Thank you to anyone that reads this and gives help so I can create my App.
Answer: button1.setMargin(new Insets(5,5,5,5));
Re: Need help for aligning JButton(to fit more text in less space)
setMargin to a new Insets with the margins of your choice.