🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #10832

Image in JApplet

#10832
From: Amy S Lee
Date: Sun, 08 Aug 1999 00:00
12 lines
952 bytes
I am trying to load an image into a JAppet.  I am using :

Image i = getImage(getDocumentBase(),"image.jpg")

I keep getting a Null Pointer Exception.  I am trying to run my applet
in Netscape Communicator 4.6.  I have used this method for other applets
that extened Applet.  This is the first time I am extending from
JApplet.  The jpg file is in the same directory as the html file.

Any help would be great.  Thanks,

Amy
Technical Details
Message-ID: <37ADB787.7E1B4731@engr.colostate.edu>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,a24bcd766c5c1823,start
X-Google-Attributes: gid111d45,public
From: Amy S Lee <al587439@engr.colostate.edu>
Subject: Image in JApplet
Date: 1999/08/08
Message-ID: <37ADB787.7E1B4731@engr.colostate.edu>
X-Deja-AN: 510326475
Content-Transfer-Encoding: 7bit
Organization: Another Netscape Collabra Server User
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing