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

ImageIcon not working  RSS feed

 
John Eipe
Ranch Hand
Posts: 215
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I'm trying to load a image to JLabel and I get the below compilation error.

ImageD.java:65: cannot find symbol
symbol : method ImageIcon(java.awt.image.BufferedImage)
location: class ImageExtracter.ImageD
myimage = ImageIcon(image);
^

The code is as below:


I checked the documentation and couldn't find anything there. Please help.
 
Rob Camick
Ranch Hand
Posts: 2754
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!