# GUI Design ![[guilayout.png]]![[guilayout.1.drawio]] # GUIDatabase Changes 1. Added Switchboard 2. Copied Options to it 3. Added JFileChooser to Read Option 4. Note DISPOSE\_ON\_CLOSE for the GUIDisplayDate Form (links to dispose() method) 5. Note the difference between displaying data and a record 6. Changed PrintCustomers method to getCustomers() returning array list 7. Added JTextArray 8. Don't exit the program 9. Adding a record.  Notice the Exception handling. # GUIDisplayData Note how I use one form for displaying all data.  Note the constructor has a Customer collection as a parameter. # Exercise 1. Add a save customers to file option to the switchboard. Implement this functionality. 2. Add the following functionality to the GUIDisplayRecord Form. 1. Clicking on the clear button should clear the form 2. Clicking on the save button should save changes to a record 3. Add a query button to the switchboard to find balances between £30 and £50.  Implement this functionality. # Source Code - [[MockSkeleton]] - [[Customer]] - [[CustomerException]] - [[DBase]] - [[GUIDisplayData]] - [[GUISwitchboard]]