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?