I have finished a project and I have been testing it by running it through IntelliJ Idea and it was working fine. I created a .jar executable file but when I run it the images I used for the GUI are not being displayed. I did some searching about that problem but I didn't quite understand how I am supposed to include the resources folder (where the images are stored) into the .jar file. I added two images of how the GUI should be displayed and how the .jar file displays it. Can I get some help please?
Thank you in advance!
I access the images like that:
JLabel lbl = new JLabel("", new ImageIcon("src\\resources\\background.png"), JLabel.CENTER);