this is a strange path
here = new ImageIcon("/Unnamed Game/res/Image.png").getImage();
add
File f = new File(".");
System.out.println(f.getAbsolutePath());
to your setImage() method we'll see where your code is ... and we'll try to figure out where your Image is relatively located
19 Replies - 417 Views - Last Post: 12 September 2012 - 08:30 PM
#17
Re: Drawing images?
Posted 12 September 2012 - 08:08 PM
C:\Projects\Unnamed Game\.
That's the output
That's the output
#18
Re: Drawing images?
Posted 12 September 2012 - 08:14 PM
so you are already in /Unnamed Game
the path to your Image is
"res/Image.png"
the path to your Image is
"res/Image.png"
#20
Re: Drawing images?
Posted 12 September 2012 - 08:30 PM
No problem
after more than 15 replies, was about time
after more than 15 replies, was about time
|
|

New Topic/Question
Reply




MultiQuote


|