How to make Image size as the label has?



I'm creating desktop wallpaper for JFrame window. I've created and
added JLabel component with icon as a jpg file. but as i resize the
window it shows only it partially. I want the size of image on label to
be in size with label .

if there is any other better method then always appreciated.

.