Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 03 Nov 1999 07:50:32 -0800
From:      Jake Burkholder <jake@checker.org>
To:        "Susanne J." <susanne_j@gmx.de>
Cc:        freebsd-java@FreeBSD.ORG
Subject:   Re: Problems loading images in applets 
Message-ID:  <19991103155032.600821FD1@io.yi.org>
In-Reply-To: Your message of "Wed, 03 Nov 1999 16:43:38 %2B0100." <3820582A.5AE9A24@gmx.de> 

next in thread | previous in thread | raw e-mail | index | archive | help
> the image is in the BitmapComponent Class with the following statement:=

> =

> public BitmapComponent (String fname)
>   {
>     img =3D getToolkit().getImage(fname);
> ...
> =

> where fname is filled with "index/header1.jpg".

I think you need to use the getImage methods from the Applet
class, rather than Toolkit.  The API documentation is always
your friend.

public BitmapComponent (String fname)
  {
    img =3D getImage(getCodeBase(), fname);
=2E..

Hope this helps.



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991103155032.600821FD1>