Results 1 to 4 of 4
  1. #1
    ramihemang90 is offline Member
    Join Date
    Mar 2011
    Posts
    3
    Rep Power
    0

    Smile Writing and Reading data to and from xml file to JTable

    Hello Friends,

    My Program is generating a data which is being stored in JTable.
    Now I want to write data from jTable to some xml file.
    And also I want to read data from xml file to JTable.

    Thank you in advance for the help..

  2. #2
    lovelesh is offline Senior Member
    Join Date
    Nov 2010
    Location
    Delhi
    Posts
    135
    Blog Entries
    1
    Rep Power
    0

    Post

    Use DataModel associated with your JTable.
    get the data from datamodel and write that into xml file.
    Do the reverse thing for getting data back in JTable

  3. #3
    ramihemang90 is offline Member
    Join Date
    Mar 2011
    Posts
    3
    Rep Power
    0

    Default But How to do that?

    Thank for your reply but as I am begginer to this can you please tell me how I can do it?
    If you have any tutorial link then please provide me so that I can refer to that and continue with my work.

  4. #4
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,861
    Rep Power
    19

    Default

    Look at the Oracle Java tutorials around JTables and table models.
    You'll also want to learn about XML Documents and how that structure works.

Similar Threads

  1. Replies: 1
    Last Post: 02-22-2011, 01:40 PM
  2. File reading / writing
    By MattBSibley in forum New To Java
    Replies: 5
    Last Post: 04-19-2010, 05:20 AM
  3. Replies: 0
    Last Post: 11-24-2009, 01:49 PM
  4. Reading data from Micrsoft excel and writing to notepad
    By abhishek.jain in forum New To Java
    Replies: 4
    Last Post: 01-29-2009, 08:12 AM
  5. Replies: 6
    Last Post: 12-12-2008, 03:35 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •