Getting an Image instance...

Ok, I have this class that extends JFrame and I'm trying to setIconImage() but I need an Image instance to do so. Is there a method to get an Image instance?
[165 byte] By [TheGuy@YourWindowa] at [2007-10-2 14:16:56]
# 1
Check out the javadocs for IconImage - and/or check out http://java.sun.com/docs/books/tutorial/uiswing/misc/icon.htmlGood LuckLee
tsitha at 2007-7-13 12:33:24 > top of Java-index,Java Essentials,New To Java...
# 2
the setIconImage() method only takes an Image object. But the Image class is abstract. I need to make an Image object. What's the method to get one?
TheGuy@YourWindowa at 2007-7-13 12:33:24 > top of Java-index,Java Essentials,New To Java...
# 3
Go to the API documentation for Image. See the "Use" link up at the top of the page? Click on it. There you will see a list of methods that use Image, that return Image, and so on. Or preferably, look at the tutorial that tsith linked to. It does have some examples.
DrClapa at 2007-7-13 12:33:24 > top of Java-index,Java Essentials,New To Java...
# 4
Ya, it has examples, but they are all of ImageIcons. I need an Image object. It's the only thing that the method will take.
TheGuy@YourWindowa at 2007-7-13 12:33:24 > top of Java-index,Java Essentials,New To Java...
# 5
you might note that the ImageIcon class has a getImage method that returns an Image.
tsitha at 2007-7-13 12:33:24 > top of Java-index,Java Essentials,New To Java...
# 6
Ya, I found that. Now I have the image, but it doesn't show up on the JFrame.
TheGuy@YourWindowa at 2007-7-13 12:33:24 > top of Java-index,Java Essentials,New To Java...