🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #18524

Applet works with NN4, doesn't on IE4

#18524
From: Jason Cone
Date: Fri, 05 Jun 1998 00:00
38 lines
1628 bytes
Hi.  I am just getting into Java, and pulled the following code from a book.
I haven't purchased JBuilder, yet, I'm still experimenting with the language
to see if I like it at all and if it will work well for the tasks I need to
accomplish.

The following code was compiled using the JDK on a Linux system.  It works
fine when
the web page is viewed from Navigator 4.04 (on the Linux system), but the
text doesn't show up when viewed from IE4.  Any insight?

import java.lang.* ;
import java.awt.* ;

public class Test extends java.applet.Applet {
     String userstring = null ;

     public void init() {
          userstring = getParameter( "mystring" ) ;
     }

     public void start() {
          Dimension d = preferredSize() ;
          resize( d ) ;
          repaint() ;
     }

     public void paint( Graphics g ) {
          String outstr ;
          outstr = "I've got a lovely bunch of " + userstring ;
          g.setColor( Color.red ) ;
          g.drawString( outstr, 20, 50 ) ;
     }
}

The parameter is set in the HTML.

The web page URL is http://members.xoom.com/Kobalos/JavaTest.html
Technical Details
Message-ID: <XMVd1.345$ri4.466141@news.internetmci.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,566ff48424f706ce,start
X-Google-Attributes: gidf74b3,public
From: "Jason Cone" <jason.cone@NOSPAMmci2000.com>
Subject: Applet works with NN4, doesn't on IE4
Date: 1998/06/05
Message-ID: <XMVd1.345$ri4.466141@news.internetmci.com>
X-Deja-AN: 359885999
NNTP-Posting-Date: Fri, 05 Jun 1998 13:19:51 EDT
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
Newsgroups: borland.public.jbuilder.java.language