Threesuns

Email

Contact

All Semesters

Semesters

All Courses

Courses

Advanced Java

CSYS2413

3 credits

Labs

Tut Observer

Lab

100 points

Requirements

Comments placed in the source code file5
Application placed in an executable JAR file5
MDI created and working20
Basic text editor functions work including editing, saving, and opening20
Tut translations are made correctly20
Tut translations occur in real time30
Total100 pts

Objective

To practice using Multiple Document Interfaces and Observers

Instructions

For this lab you will need to create a Multiple Document Interface that displays two internal frames. The first frame should be a basic text editor that allows text to be typed, opened, and saved. The second frame should also show a text editor but this frame should observe the first frame, displaying anything that is typed into it in the language of tut (described below). Whenever any changes are made to the first text editor, those changes should be seen immediately in the translation shown in the second editor. The user should also be able to save the content of the second editor.

The Language of Tut

The tut language is a simple encoded language where words are spelled out and the letters "ut" are placed after every constant and vowels are left as they are. So the word "Hello", in tut become "Hutelutluto". The word "Goodbye" becomes "Gutoodutbutyute". The sentence "How are you today?", becomes "Hutowut arute yutou tutodutayut?".