Toolkit myToolkit = Toolkit.getDefaultToolkit();
Image img = myToolkit.getImage("img.jpg");
maybe i have spelling mistakes, but u should have the Java Docs for
java.awt package, in it you'll find the correct spelling of
Toolkit,Image , and function names in the classes.
I hope this is useful?