How to store the data in text file from JFrame?

Hi

I have a JFrame that contains some number of JScrollPanes(# depends on the user). Each JScrollPane contains a JPanel (comming from a different class) that has 1 scrollable-JTable and 3 JButton. At windowClosing I want to store all the information of the tables in one text file in some specific format. At this point I only know my JFrame. Now, how can I distinguish/access each of these tables and get information in some specific cells?

Thanks for the help.

-Rain

[496 byte] By [RainFalla] at [2007-10-3 8:17:41]
# 1

Create a method on each panel that will return the needed data in the appropriate format. Create a interface with the method name an have all the panels with table implement this interface. Have your JFrame store a list of the classes of this interface. When you create the file just loop through the lists and append all the data as you write the file.

zadoka at 2007-7-15 3:22:59 > top of Java-index,Desktop,Core GUI APIs...
# 2
Thank you.Its working.
RainFalla at 2007-7-15 3:22:59 > top of Java-index,Desktop,Core GUI APIs...