This is my code..
But the image doesnt appear on the frame when i run the program
Please help
JLabel label = new JLabel();
String path = "C:/Documents and Settings/Administrator/My Documents/My Pictures//22.bmp";
try {
URL url = new URL(path);
BufferedImage image = ImageIO.read(url);
label = new JLabel(new ImageIcon(image));
} catch(Exception e){}