I am trying to allow a user to resize an icon using the scroll wheel, here is what I have so far but it is not working and I have no idea why.
Here is what I have:

try{
BufferedImage myPicture = ImageIO.read(new File("/Users/david/Desktop/AlienChar01.png"));
counter=1;

myPicture = resizeIcon(myPicture);

System.out.println(myPicture.getWidth());
counter=2;
ImageIcon icon = new ImageIcon(myPicture);
counter=3;
player.setIcon(icon);
counter=4;

} catch (Exception e){System.out.println(counter);}

the resizeIcon class I called is as follows:

public BufferedImage resizeIcon(BufferedImage img){

resizeCount+=1;

BufferedImage newPic = new BufferedImage(
resizeCount*img.getWidth(),
resizeCount*img.getHeight(),
BufferedImage.TYPE_INT_ARGB);

return newPic;
}


Any help is greatly appreciated, thanks!

EDIT: The counter you see is just for my debugging purposes.