dimanche 1 mars 2015

Image referencing inside a NB project?

Ok, I am not sure what I am doing wrong here but I am not able to reference images in my NB Java project. My code is basically the same as this:



ImageIcon i = new ImageIcon("Resources/character.png");


I Have a package called Resources in my src, and character.png in that package, so what am I doing wrong?


Aucun commentaire:

Enregistrer un commentaire