The panel is at a fixed size, always 120x120. Do you mean the image is resizing because more is being added to it, not the panel itself is physically resizing?

That method is called when the component itself is resized - which incidentally also occurs when you set the initial size of your panel.