Home arrow static arrow Java Programming [Archive] - How to write data from table to text file?
Warning: Creating default object from empty value in /www/htdocs/w008deb8/wiki/components/com_staticxt/staticxt.php on line 51
Java Programming [Archive] - How to write data from table to text file?
This topic has 3 replies on 1 page.

Posts:91
Registered: 8/4/03
How to write data from table to text file?  
Jul 9, 2004 2:28 AM



 
Hi,I wish you are having good summer holidays.
I have some questions.
How to write data from table to text file? can anyone give me some hints about this.
thanx. enjoy your holiday.
 

Posts:6,147
Registered: 11/9/00
Re: How to write data from table to text file?  
Jul 9, 2004 2:58 AM (reply 1 of 3)



 
What kind of table?
 

Posts:5,627
Registered: 3/22/04
Re: How to write data from table to text file?  
Jul 9, 2004 4:45 AM (reply 2 of 3)



 
What kind of table?

Coffee table.

If it is a JTable with relatively static (unchanging) data, just use the getValueAt() method of JTable. Otherwise, you should use the data from the Table Model. As you grab a piece of data, simply write it to a text file (see BufferedWriter).

Good luck.
 

Posts:91
Registered: 8/4/03
Re: How to write data from table to text file?  
Jul 10, 2004 12:45 AM (reply 3 of 3)



 
Hi i am very pleased to ypur reply

yes it is JTable thanx
 
This topic has 3 replies on 1 page.