Article View: borland.public.jbuilder.java.swing
Article #10833Re: Image in JApplet
From: Alex
Date: Sun, 08 Aug 1999 00:00
Date: Sun, 08 Aug 1999 00:00
45 lines
1898 bytes
1898 bytes
Hello Amy, I also had problems loading images using NN as browser. The problem is that netscape believes loading an image could be a security problem and doesn๏ฟฝt allow you to do so. I posted a similar question and this is the answer I got from Rich Wilkman " Alexander: NS considers the normal image loading mechanism to be a security exception. http://www.got.net/~rwilkman/java and look at the samples. There is one on loading images in Applets and it has code for the "Netscape" way. Unfortunatly, the Netscape way is not used in 3rd party components like jbcl or jfc, etc. You'll have to roll your own or live with text in the NS environment. -Rich " [these line are taken from an answer Rich Wilkman gave me in the newsgroup "applet-issues"] Alex. Amy S Lee <al587439@engr.colostate.edu> wrote in message news:37ADB787.7E1B4731@engr.colostate.edu... > 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:
<7okrep$5qq4@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<37ADB787.7E1B4731@engr.colostate.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 111d45,a24bcd766c5c1823 X-Google-Attributes: gid111d45,public From: "Alex" <alexbged@linux.zrz.tu-berlin.de> Subject: Re: Image in JApplet Date: 1999/08/08 Message-ID: <7okrep$5qq4@forums.borland.com> X-Deja-AN: 510361604 References: <37ADB787.7E1B4731@engr.colostate.edu> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Organization: Another Netscape Collabra Server User X-MSMail-Priority: Normal Newsgroups: borland.public.jbuilder.java.swing