I am adding image in label and label in JPanel. It doesn't show any error but doesn't load image too. Cant see any problem. images folder are placed in folder where java file is placed.Any help would be appreciated.
String path=".\\images\\1.jpg";
ImageIcon imgThisImg = new ImageIcon(path);
lblIcon.setIcon(imgThisImg);
lblIcon.setBounds(0,0,getX(),getY());
boardPanel.add(lblIcon);