Results 1 to 3 of 3

Thread: Problems with Java

  1. #1

    Thread Starter
    Fanatic Member Wynd's Avatar
    Join Date
    Dec 2000
    Location
    In a bar frequented by colossal death robots
    Posts
    772

    Angry Problems with Java

    Ok, i have made lots of applets in Java. They work fine in jbuilder 3 and 4, and appletviewer that comes with the new JDK, yet the HTML pages won't run under IE or Netscape. Why?! Also, sometimes after I make a change in an applet on the rare occasion that I do get it to run (Usually with only a drawString(), I have given up any hope of writing swing applets) the applet won't even update right away (see thread below). I have to convert the HTML page using sun's program, compile the applet, edit the HTML page so it is just the applet tag, and re-convert it. I know i shouldn't have to go through all this. I have checked my code time and time again. I have followed directions to the letter in any tutorials i come across. Why does all this happen?
    Alcohol & calculus don't mix.
    Never drink & derive.

  2. #2
    Hyperactive Member
    Join Date
    May 2000
    Posts
    367
    are you using swing?? If so you browsers will not run swing applets until you download the jre (java runtime environment)

  3. #3

    Thread Starter
    Fanatic Member Wynd's Avatar
    Join Date
    Dec 2000
    Location
    In a bar frequented by colossal death robots
    Posts
    772
    No, no swing, this is the applet I am using.

    Code:
    import java.applet.Applet;
    import java.awt.Graphics;
    
    public class test extends Applet
    {
      public void paint(Graphics g)
      {
        g.drawString("Hello", 5, 25);
      }
    }
    Alcohol & calculus don't mix.
    Never drink & derive.

Posting Permissions

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



Click Here to Expand Forum to Full Width