Creating a GUI for a board game

I also tried this one

new ImageIcon(ImageIO.read(getClass().getClassLoader().getResource("/White.png")));

new ImageIcon(ImageIO.read(getClass().getClassLoader().getResource(“White.png”)));

new ImageIcon(ImageIO.read(Thread.currentThread().getContextClassLoader().getResourceAsStream(“White.PNG”)));

new ImageIcon(ImageIO.read(Thread.currentThread().getContextClassLoader().getResourceAsStream("/White.PNG")));

new ImageIcon(“White.PNG”);

new ImageIcon("/White.PNG");

without succes

When i compile i get a note that says “Note: Some input files use or override a deprecated API.”

And when i try to debug now then under the compile process it comes with an error, but when i “just” compile nothing happens before runtime?

Now it works fine

new ImageIcon(ImageIO.read(new BufferedInputStream(getClass().getResourceAsStream(“Blank.png”))));