Hello all. I'm new here, so be nice. Anywho...I'm having a bit of trouble using the GroupLayout for my panel. My requirements for this little GUI that I'm writing involve dynamic label-field values. Thus, I have written some generic methods to handle the layout that take a LinkedHashMap of label-value pairs to build the panel. It's working great...with one exception: resizing larger works beautifully, but when I try to resize smaller, the fields won't resize with the window; they just stay to the last largest size they were. This is obviously unacceptable. Here are my 2 generic methods for building and laying out my panels:
And obviously, the use case is just to pass the aforementioned map:
I've tried adding "glue" from the BoxLayout, but that was unsuccessful. I would greatly appreciate any ideas you guys have. Thanks alot!!! Lance.
P.S. I've attached an image of the fields after being resized larger and then smaller so you could see the behavior. Thanks again for your time.