Whenever i need to load some image
i have difficulties with its path
Like i use eclipse and by putting it in src folder and then using this path
ImageIcon = new ImageIcon ("/image.png");
It does not load image i need to put it somewhere in my computer and then copy paste its path ....Its not Actually better option as when i tend to run my code in some other computer i need to change the paths of all images in my code back again
please help
Thanks
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…