You need to load the image first...
BufferedImage img = ImageIO.read(new File("C:/Users/Aron/Desktop/220i.jpg"));
nb: ImageIO.read
throws an IOException
, this is very deliberate, as it provides better management than other image loading methods
You then need to wrap it in an ImageIcon
class...
ImageIcon icon = new ImageIcon(img);
You can then pass it to setIcon
...
imagelabel.setIcon(icon);
Take a look at How to Use Labels and Reading/Loading an Image for more details
FYI: C:/Users/Aron/Desktop/220i.jpg
is only relevant to your current context. If your move your program to another computer, this image will no longer exists. You would be better off including the image as an embedded resource within the result application jar or as an image stored relative to your application.