I've been at this for 20 minutes now and I just can't wrap my head around where I'm going wrong. If an image is in the same src folder as a java file, why doesn't this work:
Image image = ImageIO.read(getClass().getResource("/image.png"));
I'm not sure if I'm missing a trick or something but I've only been able to load image from http URLs which isn't very helpful for my project.
I know this is a silly question but I've looked at many other answers with similar titles but very different problems. There was also another answer that didn't work at all.
I feel like an idiot posting this but I'm honestly about to upload all my resources to a cloud service instead of having to deal with this.