您的位置:寻梦网首页编程乐园Java天地Core JavaJava Lecture Notes

Introduction

Content

Apply

Reflect

Extend

previous.gif
 (3087 bytes)

next.gif
 (2959 bytes)

 

Apply Index

Apply Page # 4

Activity 4 — Graphics primitives

If you want a Java program to draw a triangle (and triangle is not a primitive method in the Graphics class), suggest two ways to do this using primitive shapes. Test both your ideas using Java code.

The output from your applets should be similar to the following:

Discussion of Activity 4
Back to Content

Back to top

basicline.gif (169 bytes)

RITSEC - Global Campus
Copyright ?1999 RITSEC- Middlesex University. All rights reserved.
webmaster@globalcampus.com.eg