I'm trying to make a gui that allows resizing, but does not spread the elements around the window. I would like to keep the same x and y coordinates of each item essentially, even if the window was resized, or possibly keep the distance and size the same of each item, but keep these items centered in the window. Any possible ideas on the best way to do this in Java using swing?