Combobox from plain text file (plain text file database)
I want to develop a kind of very simple database in java:
In my mind, in the GUI there is a combobox, 2 textboxes: Name and Value and 2 buttons : Load and Store.
The idea is that when I press Store, the text from the Name textbox creates a combobox item and at the same time, the name and the value of the combobox goes to a text file. If I press Load, the value which is stored in the textfile is loaded on the textbox.
The idea is to have a very simple database where I can load and store items. Ideally, when the program is crashed, the values of the combobox should be updated with the contents of the text file.
I am starting with this and so far I dont know how to start... First problem I have is that I do not know how to update the textbox with the contents from a file. I am not asking for a code (which of course would be appreciated) so far I ask for the steps to get the solution