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

previous.gif
 (3087 bytes)

next.gif
 (2959 bytes)


Apply Index

Apply Page # 5

Exercise 3? Containers and Components

Analyse the BallWorld.java example from Unit 2 and answer the following questions:

1. How many AWT component types are there in the example and what are they?

2. Are there any containers used in this example, if so what are they?

3. What is a?Java AWT container?

4. Is a container also a component?

5. Is a component also a container?

6. What messages are sent to the Ball object?

7. What messages are sent to the Frame object?

8. Will the BallWorld Frame window close if the top right hand button is clicked?


Discussion of Exercise 3 

Back to content

Back to top

basicline.gif (170 bytes)