Radford University, ITEC 224 – Fall 2003

 

Programming Assignment #1

Due date: 9:00AM, Tuesday, October 7, 2003

 

 

Problem Specification

 

1. Main Window

 

It should have three buttons: (1) Car button, (2) Airplane button, and (3) Exit button

 

  • Car button and Airplane button - When clicked, a new sub-window should be created. In the new window, a single car (or airplane) should be displayed.
  • Exit button – When clicked, all the windows should be closed and the application should terminate.

 

2. Sub-Window

 

It should have one JLabel and three buttons: (1) Move button, (2) Stop button, and (3) Exit button

 

  • JLabel – A single car (or airplane) should be displayed in it.
  • Move button – When clicked, the displayed car (or airplane) should start to move and the move button should become disabled. If the stop button is in the disabled status, it should become enabled.
  • Stop button – When clicked, the moving car (or airplane) should stop moving and the stop button should become disabled. If the move button is in the disabled status, it should become enabled.
  • Exit button in any sub-window – When clicked, the window containing the clicked button should be closed. Other sub-windows and the main window should NOT be closed.

 

Note:

  • All the icons should wrap. That is, once an icon disappears at the edge of the window, it should appear at the opposite side of the window.

 

What to submit

 

Paper document (from a word processor) that presents

  • Analysis – most important “use cases” and variation(s)
  • Design – CRC Cards, UML class diagram(s), Sequence diagram(s), State diagrams for a sub-window
  • Test plan for your programming assignment 1

 

Source code (Note: Please name your file including the main method Animation.java)

  • Softcopy

 

Java documentation

  • Softcopy

 

All the softcopy should be submitted at

 \\neelix\dropbox\ITEC\ITEC224\hlee3\Submissions\ITEC224-02-fall\<your_RU_id>\RU01