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..
Printable View
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..
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
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.
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.