画像を読み込んで背景に設定しようとしていますが、selectionPanel メソッドで「背景画像を読み込めませんでした」というエラーが表示されます。
画像処理に問題があるようですが、原因がわかりません。
public class selectionPanel extends JPanel
{
  //Variable with the name of our pic
  private static final String path = "selbkgrnd.jpg";
  private ImageIcon imageIcon;
  private Dimension windowSize;
  private int imageHeight;
  private int imageWidth;
  protected selectionPanel()
  {
    this.imageIcon = new ImageIcon("selbkgrnd.jpg"); //Save image to imageIcon
    Image image = this.imageIcon.getImage();
    this.imageWidth = image.getWidth(null);
    this.imageHeight = image.getHeight(null);
    if ((this.imageWidth == -1) || (this.imageHeight == -1)) //Check if background image is succesfully loaded
    {
      JOptionPane.showMessageDialog(JOptionPane.getDesktopPaneForComponent(this), "Could not load background image", "Fatal error!", 0);
      System.exit(-1);
    }
    this.windowSize = new Dimension(this.imageWidth, this.imageHeight);
  }
  protected void startScreen()
  {
    setOpaque(false);
    setSize(this.windowSize);
  }
  protected int getImageHeight()
  {
    return imageHeight;
  }
  protected int getImageWidth()
  {
    return imageWidth;
  }
  @Override
  public void paintComponent(Graphics g)
  {
    g.drawImage(this.imageIcon.getImage(), 0, 0, null);
    super.paintComponent(g);
  }
}