Original Post
ok, first im kind of newb,i´m learning java (to make games yay! XD), i read and finish a lot of tutorials and now i im modifiying some of the examples i got, im triying to load a image from any directory, but as far for now im still unsuseful,ive tryed...with URL objects, but when i put the return statment inside the try statment i got some error like "missing return statent", here is something ive tried: public static Image loadimg (){ try{ URL dir = new URL("c:\mi_img.png"); Image temp = Toolkit.getDefaultToolkit().getImage(dir); return temp; }catch(MalformedURLException er){System.out.println(".....¬¬");} } i also tried to put all the path of the image in the getImage method but that neither worked. that is something i ve tried so far..i just waant to know how to load images from any directory..., yes i know this is a verry newb question but if u can tellme ab out at least a tutorial to read....that will be it...thnx for reading me.. [Edited by - KazeKun on October 24, 2005 11:43:24 AM]