I am not sure if you can resize Icons directly, you can only really specify the position on screen rather than the size. You will probably have to create a method and pass the icon in as an abstract
Graphics object to allow you to manipulate it properly.
but you may have to create it as an image instead of an icon in the following way:
Image yourImage = Toolkit.getDefaultToolkit().getImage("Diver.jpg"

;
it works in the same way but will allow you to manipulate the image in a method that utilises the Graphics object such as
public void paintComponent(Graphics g)
and you will then be able to use the drawImage method of the Graphics object i.e. g.drawImage, to specify your image, its X and Y positions, its height and width values as well as the component you wish to draw it on (probably
this) to allow a scaled version to be shown.
Yes, its a bit more complex but is a good learning exercise to get you into things.
good luck.
![[pipe] [pipe] [pipe]](/data/assets/smilies/pipe.gif)