Loading Images in Applications

Hi.

I know how to load images in applets with the getImage method that comes with the Applet class, but I cant seem to find a way to do it in an application.

I found a Toolkit class, but that required me to extend it when I am already extending the Frame class.

The Frame class comes with a getImage method, but that requires a getCodeBase() method that comes with the applet class.

How would I get an image using an application?

Thanks in advanced

Glen.

[498 byte] By [Futurisdom_Developera] at [2007-11-27 6:06:05]
# 1
You don't need to extends Toolkit to impelement its abstract method. you can get default Toolkit by calling static method in Toolkit, getDefaultToolkit().Toolkit kit = Toolkit.getDefaultToolkit();
j_shadinataa at 2007-7-12 16:20:46 > top of Java-index,Java Essentials,Java Programming...
# 2
[url http://java.sun.com/docs/books/tutorial/uiswing/components/icon.html]How to Use Images[/url]
camickra at 2007-7-12 16:20:46 > top of Java-index,Java Essentials,Java Programming...
# 3
Thank you :)EDIT: worked first try, usually it takes awhile thanks allot!
Futurisdom_Developera at 2007-7-12 16:20:46 > top of Java-index,Java Essentials,Java Programming...