Basic HTML version of Foils prepared
13 July 98
Foil 43 TriangleTest Applet (cont'd)
From
Java Academy II:Intermediate Java NPAC/ECS Java Academy --
February to April 98
.
by
Tom Scavo
1
The applet instantiates two Triangle objects: public void init() { t1 = new Triangle(...); t2 = new Triangle(...); }
2
It then draws one triangle and fills the other: public void paint( Graphics g ) { t1.draw( g ); t2.fill( g ); }
in Table To:
©
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 Sat Nov 28 1998