> What are the differences between getImage and createImage,
See http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Toolkit.html
The difference is that, getImage involves image caching and createImage does
not.
Cited from the API doc of Toolkit#getImage(String):
"The underlying toolkit attempts to resolve multiple requests with the same
filename to the same returned Image."
Cited from the API doc of Toolkit#createImage(String):
"The returned Image is a new object which will not be shared with any other
caller of this method or its getImage variant."
> and what if I want using toolKit - (getImage and createImage are static,
> and I didn't find a way to create an Image object from a function of
> toolkit).
You mean, these methods are *not* static, don't you?
Click "Use" at the top of the API doc of Toolkit. You find a list of methods
that return a Toolkit.
> I need a sample code, please.

Signature
"TFritsch$t-online:de".replace(':','.').replace('$','@')
Andrey Kuznetsov - 27 Jul 2006 07:33 GMT
> You mean, these methods are *not* static, don't you?
> Click "Use" at the top of the API doc of Toolkit. You find a list of
> methods that return a Toolkit.
e.g. Toolkit.getDefaultToolkit();
Andrey

Signature
http://uio.imagero.com Unified I/O for Java
http://reader.imagero.com Java image reader
http://jgui.imagero.com Java GUI components and utilities