Results 1 to 3 of 3
  1. #1
    boy22 is offline Member
    Join Date
    Jul 2007
    Posts
    36
    Rep Power
    0

    Default problems when I try to run an applet

    I am new in applet and I did a program which compiled but it didn't run
    Java Code:
    import java.awt.*;
    import java.applet.*;
    public calss SimpleApplet extends Applet
    {
        public void paint(Graphics g)
              {
                      g.drawString("applet",10,20);
               }
    }

  2. #2
    mary is offline Member
    Join Date
    Jul 2007
    Posts
    51
    Rep Power
    0

    Default

    I have tested your code as is and it does work fine. However, if you are running it in IE you will have to make sure it is not being blocked. check to make sure you don't have a yellow warning box at the top of the screen when you run it. Also make sure you are using a good test HTML page to activate the applet.

  3. #3
    marco is offline Member
    Join Date
    Jul 2007
    Posts
    23
    Rep Power
    0

    Default

    u spelled class wrong lol that might be why and it also might be ur editor too

Similar Threads

  1. applet.policy and i/0 problems
    By willemjav in forum NetBeans
    Replies: 0
    Last Post: 03-08-2008, 10:32 PM
  2. problems with applet session between to two applets
    By elizabeth in forum Java Applets
    Replies: 1
    Last Post: 08-07-2007, 03:23 PM
  3. Problems with compile applet
    By coco in forum Java Applets
    Replies: 1
    Last Post: 08-07-2007, 07:43 AM
  4. problems with applet tags
    By oregon in forum Java Applets
    Replies: 2
    Last Post: 08-06-2007, 03:19 AM
  5. problems with applet
    By paty in forum Java Applets
    Replies: 1
    Last Post: 08-05-2007, 04: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
  •