File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Populate JText fields with XML data?

 
Danny Jones
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 84
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this what you are talking about?

Check Here
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic