Align Text in JOptionPane
posted 11 years ago
For purely textual layout, it might be overkill to use a JPanel with GridBagLayout (although it certainly will work). I wouldn't think that you would want to instantiate all of those JLabels or try to figure out how to get them all to line up like you want them using GridBagLayout. Most folks know how to do simple tables in HTML and that should suffice.