So with ImageIcon, you set up the file location like this - "/textures/Player.png"

However, I can't figure out how to do this with ImageIO. Something I am missing maybe?

Here's the code that won't work (this file is inside of the "res" folder, which is already inside my filesystem. The above ImageIcon example works, and that system is set up like this: res >> textures >> file)

With getClassLoader(), you don't need the leading forward slash since it automatically uses a path relative to the root of the project.

I actually just discovered this a couple days ago when MatthiasM pointed out that Class.getResource(AsStream) automatically remove the leading forward slash or (if it is absent) pre-pend the Class's path and then delegate that String to the ClassLoader's getResource(AsStream).

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org