My "form" is 9X uglier than a bag of butts (How to restrict the width of JTextField?)
I'm using BorderLayout on my frame and BoxLayout on my panel:
This is working well enough, except that my JTextFields are the entire width of the panel (about 10X wider than they need to be). How can I get them to straighten up and fly right?
mainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.PAGE_AXIS));
Similarly, how can I add some "padding" or margins to my components, so that they don't scrunch right up against each other?