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

Introduction

Content

Apply

Reflect

Extend

previous.gif
 (3087 bytes)

next.gif
 (2959 bytes)


Apply Index

Apply Page # 11

Activity 11 – Sending simple messages to a Circle object

Run the "SimpleMessages" application. When the application runs it should create a window (show in the diagram below), presenting on the left 4 buttons to press, and on the right an area showing a small, black circle.

Make the circle exhibit the following behavior by sending appropriate messages to it:

    1. set its color to red
    2. set its color to blue
    3. make the circle larger
    4. make the circle smaller

Discussion of Activity 11 – Sending simple messages to a Circle object

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