Java - ArrayList - StaffPhoneGUI - Part 2 - Add, Clear, Save to File
@MoosesValley - Software development, SciFi, Doggies, Animal Rescues, Quad Bikes, and more
A video of me developing StaffPhoneGUI a little further ... adding "Add", "Clear", and "Save" buttons. See the "Question" below.
Source code here: https://github.com/MooseValley/ArrayList-StaffPhoneGUI-Part-3-Edit-Auto-Save-etc
Question:
- (Continued from Question 3). This time when the program starts to run, the data file is automatically loaded and all the phone entries from the data file (staffphone.txt) are displayed on the text area as shown below. The GUI has two extra buttons – one named as “Add” and the other one named as “Save”. When the “Add” button is clicked, an input dialog is asks the user to input a name; and similar input message dialog for obtaining phone value. The newly obtained data values have to be appended to the text area. If the “Save” button is clicked, all data shown on the text area has to be stored to the data file "staffphone.txt" in a suitable format. Hint: You may need to use file read/write. The “Clear” button can be used to clear the contents from the text area.
Source code here: https://github.com/MooseValley/ArrayList-StaffPhoneGUI-Part-3-Edit-Auto-Save-etc
Moose's Software Valley - Established July, 1996. https://rebrand.ly/MoosesSoftware ... https://www.youtube.com/watch?v=vLum9uY32v0
2020-05-07
0.0 LBC
Copyrighted (contact publisher)
139255342 Bytes