Java程序辅导

C C++ Java Python Processing编程在线培训 程序编写 软件开发 视频讲解

客服在线QQ:2653320439 微信:ittutor Email:itutor@qq.com
wx: cjtutor
QQ: 2653320439
COMP5028 Object Oriented Analysis and Design  Semester 1, 2007 
 
 
 
Laboratory session Five  
SIT Lab 116/117 
Wednesday April 25, 2007 
School of Information Technologies 
The University of Sydney 
 
 
Objective 
• Learn to draw class diagram to express class relationship  
• Learn to draw sequence diagram to express object interaction  
• Practice reverse engineering on a simple java GUI application source code.  
Tasks 
A. Download file QuickEntryApplicaiton.java from the tutorial page. QuickEntryapplication 
is a simple GUI application which contains two elements: a List and a TextField. When 
you type in the TextField, the first element of the list that matches what you have typed 
will be highlighted. Open the file in an editor (text editor or Java IDE) to inspect the code. 
You can compile and run it. 
B. Starting from the QuickEntryApplication  class, draw a sequence diagram to illustrate the 
important interaction among all objects. You are asked to show two sequences in this 
diagram. The first one is a creational sequence which illustrates how each object is 
created when the application starts. Next, you should show a sequence of interaction 
initiated by a user typing some letters in the text field. In this case, we assume that the 
typing will be translated to an INSERT document event and this event will be captured 
by the document associated with the TextField.   
C. Create a new page and draw a class diagram to show class structure and relationships of 
this QuickEntry application. You are not required to show every attributes or methods of 
a Java library class. Try to show navigability arrow in association relationship and 
important dependency relationship between classes. Visio use stereotypes instead of 
keywords to categorize different types of dependency, the two terms are interchangeable 
in UML 1. Put a stereotype to each dependency you identified. You can add new 
stereotypes in addition to the predefined ones in Visio.