What have you got so far? You need to use a relative-positional panel layout manager such as BorderLayout to achieve this effect. If you've put components onto a panel using absolute coordinates and the panel has no layout manager, then the components will not take relative positions as you have found.
By the way, this forum is for J2EE questions. Please use forum269 for plain Java question like this in the future.
Tim