Hi,
I want to insert a .gif image in a panel. I am using following code :
java.net.URL imageURL = getClass().getClassLoader().getResource("images/loading.gif");
ImagePanel loading = new ImagePanel(new ImageIcon(imageURL).getImage());
this.jPanel1.add(loading);
Using this if I insert
normal image it displays but if I changes it to
loading.gif it doesn't ...
What is the issue ? and how to fix it ?
Thanks,