I was wondering what layout or hack could be used to position these two JPanels so that it would end up looking like this?
It seems like most layouts depend on the position of other components and either positions them vertically or horizontally in respect to the other components.
Note: Panel 2 is smaller than panel 1.