Source folder images eclipse/java -


how crate source folder images , use them in same project? have "image" folder in src , indicated source folder via build-path. tried million ways put images on jframe-jlabels none of them seems work(it absolute path).what best way that?relative path needed...

make resource folder. call "res" or whatever want. or can make method sets directory folder want , input file name

img = imagename.png

buffimg = imageio.read(new file("c:\project\src\images\" + img)); 

Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -