Here is the problem: I have a variable number of components positioned as I want in a GroupLayout (the layout and position between components work as I want). I add this GroupLayout to a JPanel and this one to a JFrame, and I see that the group is aligned to the up-left corner.
The question is, how do I get the group centered in the JPanel? I mean I want to see the GroupLayout centered in the maximized JFrame in both horizontal and vertical axis.
I supose that the answer to my question is so easy but I cannot see it.
Thank you for your anwers!!