Basic HTML version of Foils prepared April 7 1998

Foil 6 Example

From Overview of Java2D and Java3D Frameworks CPS616 Web Technologies -- Spring 98. by Geoffrey C. Fox


1 Example: Suppose you have a component whose job it is to draw a red rectangle
2
  • Using the AWT drawing model:
3 public void paint( Graphics g ) {
4 g.setColor( Color.red );
5 g.fillRect( 300, 300, 200, 100 );
6 }

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 Sun May 3 1998