• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Populate JText fields with XML data?

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is this what you are talking about?

Check Here
 
reply
    Bookmark Topic Watch Topic
  • New Topic