RHS   Allan   Software construction Exercises BankGUIManager


 

BankGUIManager

In class Thursday 18th November 2005 we discussed and developed a GUI version of the BankAccount example used earlier (from Chapter 3 in the textbook, pp. 81-82 and p. 84).

You can download the three java-classes and the form file used for Netbeans GUI-editor below.
The easiest way of getting the files into a Netbeans project is to create the project in Netbeans without any files and then save the 4 files below in the projects src folder:

  BankAccount.java The Model-class to hold information about an account  
  BankSystem.java The Control-class that represents the complete application and its logic  
  BankAccountView.java The View-class to represent the complete GUI of the application  
  BankAccountView_form.zip

The file used by Netbeans to make it possible to edit the form using the GUI-editor

Due to configurations of the web-server you cannot download files with the extension ".form" - so I zipped (compressed) the file into BankAccountView_form.zip - REMEMBER to unzip (extract) the file after downloading it to your folder and give it the name BankAccountView.form.

 

Instead of downloading the files individually you can download my complete Netbeans project here in compressed form. After you decompres (extract) the file in the folder where you want the Netbeans project to be you will see a folder called BankGUIManager - this is the project folder. From Netbeans you should be able to open the project without creating anything first: BankGUIManager.zip

Exercise 1
From our discussion and considerations in class and the code in the files you should be able to create a sequence diagram for all possible interactions between the user and the application.

Exercise 2
In the example above we changed the BankAccount example from the textbook into a GUI application using the Model-View-Control (MVC) architecture.
In the same way you should change your solution for the exercise P3.4 (p. 99 in the textbook) to use a GUI and the MVC architecture.

Exercise 3
Also change your solution for the exercise P3.6 to use a GUI and the MVC architecture.

 


Maintained by: Allan Helboe Nielsen
Updated: 28 November, 2005 23:49