Re: Loading an image file into an applet
- From: Tor Iver Wilhelmsen <jadedgamer@xxxxxxxxxxx>
- Date: 27 Jul 2005 16:42:22 +0200
"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.
.
- Follow-Ups:
- References:
- Loading an image file into an applet
- From: Ed
- Loading an image file into an applet
- Prev by Date: Re: JNLP & Web start & signing?
- Next by Date: Desperately seeking strtod()
- Previous by thread: Re: Loading an image file into an applet
- Next by thread: Re: Loading an image file into an applet
- Index(es):