By your comment,
layout.setIcon(new ImageIcon("Images\\BlackRockAndBlackBoard.jpg"));
ImageIcon treats the string as a filename, you need to take a gander at Get a resource using getResource()
Then use the url for constructing the ImageIcon
.
URL imageUrl = YourClassName.class.getResource("/Images/ImageName.jpg");
layout.setIcon(new ImageIcon( imageUrl ));
The URL is allowed as a constructor argument as you can see here http://docs.oracle.com/javase/7/docs/api/javax/swing/ImageIcon.html#ImageIcon%28java.net.URL%29.