problem solved - i thought that it'll load images from the inside of jar but it just has to be in proper folder to run :) thanks for help
Type: Posts; User: Teuthoidea
problem solved - i thought that it'll load images from the inside of jar but it just has to be in proper folder to run :) thanks for help
strange thing - my friend said that it's working while i have tested it at my pc (win7) and then at winxp at virtualbox both failed, moreover he send me his game and i images there were not loading...
i have seen smth like using " new point () " don't remember arguments of it and whole thing was related to my problem but seemd to be hard at all
i'll be glad if you give me an example with path point i've seen it earlier today but cant google it out now
hierarchy of packages : 1275
System.out.println(this.getClass().getResource("/gra/grafika/ramka.png"));
this line prints null just like there's no such file
also tested line from copeg
and that's the results of running it...
images are in location gra > grafika in jar file
As you can see I have tried various ways of loading images to my program,
Image iiii = new ImageIcon("src/gra/grafika/ramka.png").getImage();
//Image iiii = new...