ciao a tutti, ho creato un progetto e se lo eseguo da netbeans tutto ok.

Se invece ne creo un jar, tutto ok se non fosse che mi sparisce un'immagine. Il codice che ho utilizzato per creare l'immagine è questo :
codice:
//immagine
            icon = createImageIcon("./simboloPiccolo.png","");

        /** Returns an ImageIcon, or null if the path was invalid. */
        private ImageIcon createImageIcon(String path, String description) {
        java.net.URL imgURL = getClass().getResource(path);
        if (imgURL != null) {
        return new ImageIcon(imgURL, description);
        } else {
        System.err.println("Couldn't find file: " + path);
        return null;
    }
Ovviamente l'immagine si trova nella stessa cartella dei sorgenti.

Sapreste dirmi dove sbaglio???