Re: Applet and newbie

From: A.Tamboer (a.tamboer_at_home.nl)
Date: 02/05/05


Date: Sat, 5 Feb 2005 10:42:41 +0100

Thank for the reaction

I use the browser of Windows 98XP pro Sp2, 6.0.2900.xp_sp2. When I run the
applet in the browser I see a note "AfbApplet started" but I do not see the
"afbeelding.jpg".

When I run the applet in the NetBeans 4.0 Applet Viewer in Viewer is a note
"start applet not initialized" and in the output window of NetBeans the note
as mentioned in first request for help.

Regards Arie Tamboer

"A.Tamboer" <a.tamboer@home.nl> schreef in bericht
news:ctqsua$pb9$1@news3.zwoll1.ov.home.nl...
> When I run the applet AfbApplet, I get the remark
> "java.security.AccessControlException: access denied
> (java.io.FilePermission \C:\Documents and
> Settings\.....\hfst09\build\afbeelding.jpg read)"
>
> The hmtl doc. and jpg doc are in same "\build\" folder.
>
> What is wrong?
>
> Thanks
>
> Arie Tamboer
>
>
>
> public class AfbApplet extends java.applet.Applet {
>
>
>
> public void init() {
>
> url = getDocumentBase();
>
> image = getImage(url , "afbeelding.jpg");
>
> }
>
>
>
> private URL url;
>
> private Image image;
>
>
>
> public void paint(Graphics g) {
>
> g.drawImage(image , 10 ,50 ,this);
>
> }
>
>
>
> }
>
>



Relevant Pages

  • Re: Applet and newbie
    ... > When I run the applet in the NetBeans 4.0 Applet Viewer in Viewer is a note ... However, when I tried it in Netbeans, I got the same error as you. ... Maybe you should restart your browser (especially if you have recompiled ...
    (comp.lang.java.help)
  • Re: Double-Clickable Jar File/NetBeans 4.1
    ... > I just got started with NetBeans 4.1 yesterday. ... > I want to make a double-clickable jar file, ... > the .jar in Windows Explorer, I get the error message: ... is also an applet, and then only in a web page. ...
    (comp.lang.java.programmer)
  • Re: AccessControlException when serving applet using GlassFish v2
    ... run through the NetBeans applet viewer. ... the GlassFish environment is that in NetBeans I can specify an applet.policy ... file to run with when using the applet viewer. ... to refuse acceptance of signed code, ...
    (comp.lang.java.programmer)
  • Re: New to Netbeans
    ... edit the html file generated by netbeans in the same directory as the applet ... add the param info in the applet tag ... > this old syntax that has been deprecated. ...
    (comp.lang.java.programmer)
  • Re: Applet deployment problem
    ... Your applet depends on PieDataset. ... Have Netbeans create a jar (with all ... You can list the contents of the jar with the command ... and added arhive in the html file. ...
    (comp.lang.java.programmer)