I tried to fix this wronging awhile ago.
I have attached a .txt file of an Object I made that lets you position objects based on Coordinate, centered, offsetting, pointers to other elements, arrays (1D and 2D) of components, ect.
I also attached a test program that I don't think uses all the methods (it is an old test program). Tell me if you need help using it, I'll be happy to help. It has made GUI building about a thousand times easier for me. You probably cannot use this with a GUI builder, I imagine things will blow up.
Save them as .java files and play with the layout manager. It is very simple once you get the hang of it.