This is a java SWING question. I have strict specifications on how components in my UI must be aligned. I can achieve this by using GridBagLayout and putting all my components in the same panel. However, this approach is going to make the code difficult to maintain. Ideally I'd like to be able to put logically distinct components in separate panels and specify some alignment constraints. Is there a way to accomplish this?