Search code examples
javalinuxeclipseimageimageicon

How can I display image in eclipse?


Need Help , I'm using eclipse on linux ,I have a code java MineSweeper Game when I run it
enter image description here

the images in the matrix are not displayed even there is no error in code ,& the same code run perfectly in another machine enter image description here

th images is in folder

enter image description here

& called in the code

enter image description here

I tried to run it with intellij the same result no image


Solution

  • There is no Drapeau.PNG in your screenshot. So that could be the problem. But more likely, the problem is that your filenames seem to actually end in .png, not .PNG. Linux filesystems are case-sensitive.