Ciao abcd.. scusa il disturbo.
Allora il codice che uso è il seguente:

package grafica;

import javax.swing.*;
import java.awt.*;
import java.net.*;

/**
*

Title: </p>
*

Description: </p>
*

Copyright: Copyright (c) 2003</p>
*

Company: </p>
* @author not attributable
* @version 1.0
*/

public class Img extends JFrame {
JPanel jPanel1 = new JPanel();
JLabel jLabel1 = new JLabel();
URL url = Img.class.getResource("image/FARMACIA1.gif");
Image img=Toolkit.getDefaultToolkit().getImage(url);
ImageIcon image = new ImageIcon( img );
public Img() {
try {
jbInit();
}
catch(Exception e) {
e.printStackTrace();
}
this.setTitle("Prova Immagine");
this.setSize( new Dimension( 152,152 ) );
this.show();
}
private void jbInit() throws Exception {
this.getContentPane().setLayout(null);
jPanel1.setBorder(BorderFactory.createEtchedBorder ());
jPanel1.setBounds(new Rectangle(3, 4, 394, 293));
jPanel1.setLayout(null);
jLabel1.setBorder(BorderFactory.createEtchedBorder ());
jLabel1.setBounds(new Rectangle(74, 96, 246, 100));
this.jLabel1.setIcon( image );
this.getContentPane().add(jPanel1, null);
jPanel1.add(jLabel1, null);
}
public static void main( String[] args ){
new Img();
}
}

L'errore è il seguente:

Uncaught error fetching image:
java.lang.NullPointerException
at sun.awt.image.URLImageSource.getConnection(URLImag eSource.java:99)
at sun.awt.image.URLImageSource.getDecoder(URLImageSo urce.java:108)
at sun.awt.image.InputStreamImageSource.doFetch(Input StreamImageSource.java:251)
at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher. java:168)
at sun.awt.image.ImageFetcher.run(ImageFetcher.java:1 36)

Ho un package in cui c'è la classe Img ed un package image in cui c'è l'immagine FARMACIA1.gif Queste sono le uniche due cartelle che uso e Img è l'unica classe che ho creato... come mai non funzica???
Bah Cmq ogni aiuto è gradito.... ciao