From owner-freebsd-java Wed Nov 3 8:14:16 1999 Delivered-To: freebsd-java@freebsd.org Received: from io.yi.org (24.66.174.118.bc.wave.home.com [24.66.174.118]) by hub.freebsd.org (Postfix) with ESMTP id 95D2C14CA6 for ; Wed, 3 Nov 1999 08:14:10 -0800 (PST) (envelope-from jake@checker.org) Received: from io.yi.org (localhost [127.0.0.1]) by io.yi.org (Postfix) with ESMTP id 600821FD1; Wed, 3 Nov 1999 07:50:32 -0800 (PST) X-Mailer: exmh version 2.1.0 09/18/1999 To: "Susanne J." Cc: freebsd-java@FreeBSD.ORG Subject: Re: Problems loading images in applets In-reply-to: Your message of "Wed, 03 Nov 1999 16:43:38 +0100." <3820582A.5AE9A24@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Date: Wed, 03 Nov 1999 07:50:32 -0800 From: Jake Burkholder Message-Id: <19991103155032.600821FD1@io.yi.org> Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > 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