I have a panel that generates from a document. I don't know exactly how many fields and labels I'll be adding, and I want it to make two columns of label and field. How I think I can do this is with GridBagLayout and getting the GridBagConstraints, but I can't figure out how to do that. Anyone know how to get the GridBagConstraints back out of a JPanel/JFrame?
If not, any alternatives you can suggest would be greatly appreciated.