Re: Loading an image file into an applet



"Ed" <nospam@xxxxxxxxxx> writes:

> Toolkit kit = Toolkit.getDefaultToolkit();
> String blankCard = "cardfile/blank.GIF";
> Image blankCardImage = kit.getImage(blankCard);

This will try to get the image from the local filesystem.

Look into Class.getResource() and the ImageIcon class.
.