Quote Originally Posted by Adam Cruge View Post
the code is
import javax.swing.JFrame;
import javax.swing.ImageIcon;
import java.awt.Image;
import java.net.URL;
import java.awt.image.*;
import java.net.*;
public class Test
{
public static void main(String[] args) throws Exception
{
JFrame frame = new JFrame();
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOS E);
URL url = Test.class.getResource("D:/icon.gif");
System.out.println("url = " + url);
BufferedImage image = javax.imageio.ImageIO.read(url);
frame.setIconImage(image);
frame.pack();
frame.setVisible(true);
}
}


Please make correction......


Thank you it's works... i'll need all this info ;)