I am trying to create a form like structure using Swing to enter data into MySQL database. I have a combo box that has a list of items to be chosen. If the user does not find the option that he needs, he can choose 'Other' as an option from the combo box. I have given another text field where the user can articulate what his other option is. Now I want to append whatever the user enters in the 'Other' textfield to the combo box list while the user click the save button; thus saving the option in the corresponding table in the database.
Can anyone guide me as to how I can achieve this?
Thanks in advance.