• Post Reply Bookmark Topic Watch Topic
  • New Topic

image icon  RSS feed

 
Lesole Mphinyane
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey guys i cant display image on using eclipse but with jgrasp its ok...
look at my code
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In your eclipse setup, does the image exist at this relative url images/l.png?
 
Lesole Mphinyane
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maneesh Godbole wrote:In your eclipse setup, does the image exist at this relative url images/l.png?


yes it is there;

directory for the image is; ..\src\images\1.png

for the program is; ..\src\Program.java

is it okay to put the image folder in the src folder??
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where are your class files being generated? In bin? If yes, shouldn't the images folder be relative to the bin folder?
 
Lesole Mphinyane
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maneesh Godbole wrote:Where are your class files being generated? In bin? If yes, shouldn't the images folder be relative to the bin folder?


thanks it worked...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!