Help needed setting ImageIcon image
I get this error when trying to set the image on the imageIcon.
setImage(java.awt.Image) in java.swing.ImageIcon cannot be applied to (java.lang.string)
This is my code.
protected double charge;
protected String regNumber;
protected ImageIcon vehicleImage;
charge = 0;
regNumber = null;
I can get it set by using the constructor but i want to be able to change it. Please help!
Also the directory for the picture is correct