• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

creatimageicon method

 
shaon husain
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have the code

how do i get the else to display an image, ive got an image to show when there isnt an image, how do i do this.

ie, if there isnt an image show this image instead.
thanks
 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You will need to treat as the new path, create the URL->ImageIcon and return it.
This will work provided the image exists at the path above
 
shaon husain
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maneesh Godbole wrote:You will need to treat as the new path, create the URL->ImageIcon and return it.
This will work provided the image exists at the path above


i have done this, is this the best way,

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic