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

Introduction

Content

Apply

Reflect

Extend

previous.gif
 (3087 bytes)

next.gif
 (2959 bytes)


Extend Index

Extend Page # 8

Extension Activity 5 – Input device event messages

This activity explores event messages send from input devices to application objects.

Perform the following tasks

(1) start notepad via the Windows "Start" menu

(2) minimise the window

(3) maximise the window

(4) type 3 lines that each say "this is a test"

(5) move the cursor with the arrow keys to the end of the top line

(6) use the mouse to position the cursor (caret) to the beginning of the second line

(7) run the application "SimpleMessages" and make the circle smaller

(9) For each of the above actions, write down one or more events that you may have caused to be sent to the "notepad.exe" program.

Discussion of Extension Activity 5

Back to Extend

Back to top

 basicline.gif (169 bytes)

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