Basic HTML version of Foils prepared 2 October 98

Foil 6 Example Java Code Accessed from JavaScript

From Netscape's LiveConnect Technology CPS640 Internet and Multimedia Technologies -- April 98. by Marek Podgorny,Nancy McCracken


import java.applet.*;
import java.awt.Graphics;
public class Hello extends Applet {
String str = "Hello, World";
int x = 25;
int y = 25;
public void paint ( Graphics g){
g.drawString ( str, x, y );
}
public void setString ( String newstr ){
str = newstr;
repaint();
}
public String getString() {
return str;
}



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sun Nov 29 1998