From owner-freebsd-java Wed Nov 3 7:35:20 1999 Delivered-To: freebsd-java@freebsd.org Received: from mail-ob.kamp.net (mail-ob.kamp.net [195.62.97.26]) by hub.freebsd.org (Postfix) with ESMTP id 49DC214DBD for ; Wed, 3 Nov 1999 07:35:16 -0800 (PST) (envelope-from susanne_j@gmx.de) Received: from gmx.de (port-16.d.kamp.de [195.62.120.208]) by mail-ob.kamp.net (8.9.3/8.9.3) with ESMTP id QAA21079 for ; Wed, 3 Nov 1999 16:35:15 +0100 Message-ID: <3820582A.5AE9A24@gmx.de> Date: Wed, 03 Nov 1999 16:43:38 +0100 From: "Susanne J." X-Mailer: Mozilla 4.7 [en] (X11; I; FreeBSD 3.2-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-java@freebsd.org Subject: Problems loading images in applets Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hello. I´m currently trying to code my first applet and I´ve problems with an BitmapComponent Class, which loads an image. The applet is running perfectly in the appletviewer, but if I try to run it over a WEB-Server (apach) with netscape or msie as the Client-Browser, the browsers reportet errors in accessing the image. the image is in the BitmapComponent Class with the following statement: public BitmapComponent (String fname) { img = getToolkit().getImage(fname); ... where fname is filled with "index/header1.jpg". I think that could be a problem with the place, where the applet would try to load the image? If that´s the problem, how could I force the applet to load the image from the WEB-Server? (My configuration is: a FreeBSD-3.2 machine with apache 1.3.9 as the WEB-Server, a Netscape Browser on the same machine and a WindowsNT machine in the Network with the Microsoft Internet Explorer 4.0) Thanks in advance, Susanne. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message