Ciao, ho effettuato l'override del mio JPanel nel seguente modo:
codice:
import java.awt.Graphics;
import java.awt.Image;
import java.io.IOException;
import javax.imageio.ImageIO;

/**
 *
 * @author Daniele
 */
public class backgroundedPanel extends javax.swing.JPanel
{
    protected Image img;

    public backgroundedPanel(String localURL)
    {super();
        try
        {this.img = ImageIO.read(getClass().getResource(localURL));}
        catch (IOException ex)
        {System.out.print("Impossibile leggere l'immagine per creare il pane \n");}
    }

    @Override

    public void paintComponent(Graphics g)
    {
        g.drawImage(img, 0, 0,img.getWidth(null), img.getHeight(null),null);
    }

    public void setBounds(int x, int y)
    {
        super.setBounds(x,y,img.getWidth(this),img.getHeight(this));
    }
}
Adesso se io volessi utilizzare tale metodo in un'altra classe dello stesso package cosa devo fare?
Per inserire un'immagine devo inserire l'indirizzo locale dell'immagina da caricare, ma tale immagine può essere in qualsiasi posto del mio computer? mi potete fare un esempio?

Mettiamo che voglio utilizzare questo motodo in una classe JFrame disegnata con netBeans in automatico con il metodo grafico, come faccio a far disegnare il mio JPanel con lo sfondo definito da me?

Ecco un sempio di JPanel disegnato con netBeans dove imposto con il mouse le finestre e poi il codice viene generato in automatico:
codice:
public class mensa extends javax.swing.JFrame {

    /** Creates new form mensa */
    public mensa() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jPanel1.setBackground(new java.awt.Color(255, 0, 0));
        jPanel1.setNextFocusableComponent(jPanel1);

        org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(0, 100, Short.MAX_VALUE)
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(0, 100, Short.MAX_VALUE)
        );

        org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(layout.createSequentialGroup()
                .addContainerGap()
                .add(jPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(280, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(layout.createSequentialGroup()
                .addContainerGap()
                .add(jPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(180, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new mensa().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify
    private javax.swing.JPanel jPanel1;
    // End of variables declaration

}