From owner-freebsd-java Thu Jul 15 7:28: 5 1999 Delivered-To: freebsd-java@freebsd.org Received: from ns.mt.sri.com (ns.mt.sri.com [206.127.79.91]) by hub.freebsd.org (Postfix) with ESMTP id E742F14F86 for ; Thu, 15 Jul 1999 07:28:03 -0700 (PDT) (envelope-from nate@mt.sri.com) Received: from mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.8/8.8.8) with SMTP id IAA22432; Thu, 15 Jul 1999 08:27:41 -0600 (MDT) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id IAA02100; Thu, 15 Jul 1999 08:27:41 -0600 Date: Thu, 15 Jul 1999 08:27:41 -0600 Message-Id: <199907151427.IAA02100@mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable To: Joachim Jaeckel Cc: freebsd-java@FreeBSD.ORG Subject: Re: problems loading images for buttons? In-Reply-To: <378DE04A.F57DC530@d.kamp.net> References: <378DE04A.F57DC530@d.kamp.net> X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > I=B4ve a problem trying to load an image for a button. >=20 > The description of "new ImageIcon("images/middle.gif")" says, that it= > loads the image relative to the path where the class-file is. But if = I=B4m > not in this path, the image isn=B4t loaded. I=B4m using jdk1.1.7 for = FreeBSD > (the old static Version...). Is this a bug in the jdk or do I somethi= ng > wrong. I'm almost positive this is 'standard behavior' of how things work. Where is ImageIcon documented? In my experiences, you load 'resources'= out of the CLASSPATH, but certainly not images. Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message