I dont understand why the image isnt appearing! please help..
import javax.swing.*;
import java.awt.*;
//import java.awt.event.*;
public class level2 extends JFrame{
Container con= getContentPane();
ImageIcon bg= new ImageIcon("D:\\Raptor\\background3.jpg");
JLabel back= new JLabel(bg);
level2(){
setDefaultCloseOperation(EXIT_ON_CLOSE);
setLayout(null);
setSize(1300,700);
back.setBounds(0,0,500,500);
con.add(back);
setVisible(true);
}
public static void main(String[] args) {
new level2();
}
}