Using JFileChooser to open a XML file that will populate several text areas with the data from the XML file.
I’ve been doing a lot of research about how to work Java and XML together and have a pretty good setup with how to do it. But I want to be able to import the saved XML files back in to the Java program to repopulate the text fields. The program is using JPanel with JTextFields.
For example: The Java program has several JTextArea fields to input a Name, Address, Phone Number. The user enters in the data and then saves it. There would be several of these fields for like, User 1, User 2, User 3, all with a different save file names. The problem I’m having is being able to repopulate that saved data back into the program, like if it needs to be changed and resaved.
So the question is.. How can I do this? Directions pointing somewhere or tips would be appreciated!