how to import an image in intellij IDEA?

2019-08-17 15:45发布

问题:

i have problem in importing images in intellij IDEA when i use this code :

Image  imageVariable  =  getImage( getCodeBase( ), filename );

it doesn't show the image when i run the program , whats the problem?

(i am sure that the file name is the same and right).

thanks