File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Populate JText fields with XML data? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Populate JText fields with XML data?" Watch "Populate JText fields with XML data?" New topic
Author

Populate JText fields with XML data?

Danny Jones
Greenhorn

Joined: Mar 24, 2009
Posts: 1
Hi,

Main Goal:
Using JFileChooser to open a XML file that will populate several text areas with the data from the XML file.

Going Deeper:
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!

Thanks
David Barry
Ranch Hand

Joined: Jan 13, 2009
Posts: 83
Is this what you are talking about?

Check Here
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Populate JText fields with XML data?