Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

creatimageicon method  RSS feed

 
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
Bartender
Posts: 11445
18
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,

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!