Please,
UseCodeTags (this is a link) when posting. I have added them for you this time. Doesn't it look better?
You can try replacing
with
The reason is, the image has not beed loaded when
drawImage() is called for the first time. You can verity this by printing the result of this method (it returns false if the image has not been loaded, true otherwise).
Adding the panel as
ImageObserver ensures that the image will be drawn when fully loaded.
Also, don't write
String args[]. It should be
String[] args.