This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes ImageIcon not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "ImageIcon not working" Watch "ImageIcon not working" New topic
Author

ImageIcon not working

John Eipe
Ranch Hand

Joined: May 23, 2008
Posts: 215
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.


www.cs-repository.info
Rob Camick
Ranch Hand

Joined: Jun 13, 2009
Posts: 2372
    
    8
 
Have you checked out Aspose?
 
subject: ImageIcon not working
 
It's not a secret anymore!