Results 1 to 1 of 1

Thread: Need help

  1. #1
    juhiswt is offline Member
    Join Date
    Mar 2011
    Posts
    30
    Rep Power
    0

    Default Need help

    import java.awt.*;
    import java.applet.*;

    /* <applet code="JugglerMoving" width=1000 height=1000></applet>*/

    public class JugglerMoving extends Applet
    {
    Image[] juggler=new Image[5];


    public void init()
    {
    for(int j=0;j<5;j++)
    juggler[j]=getImage(getDocumentBase(),"juggler[j].gif");
    }

    public void paint(Graphics g)
    {
    for(int j=0;j<5;j++)
    g.drawImage(juggler[j],10,10,this);
    }
    }
    The image is not displayin neither with appletviewer nor with browser.
    With applet viewer msg displays program is not compatible with visual elements of window 7. and with browser some security risks.
    Last edited by juhiswt; 03-07-2011 at 03:16 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •