If you want a margin around a component, set its Border using BorderFactory's createEmtpyBorder method. I'm guessing your GUI builder will let you move things around? I don't use them and usually...