Listbox Loading/Saving

Can someone explain or show me some code that will allow me to Load and save text similar to this:data1data2data3etcThanks for any help!
[178 byte] By [SMAlvareza] at [2007-11-26 21:09:31]
# 1
No idea what you want.There is a List class that allows you to store object. There is a JList GUI component that allows you to display text. There is a JTextArea that allows you to display text.Your question is so vague I wont waste any more time guessing what you want.
camickra at 2007-7-10 2:45:36 > top of Java-index,Java Essentials,Java Programming...
# 2
I want to load a text file into a jlist.I also want a function to save whatever in that jlist to a text file.
SMAlvareza at 2007-7-10 2:45:36 > top of Java-index,Java Essentials,Java Programming...
# 3

In the future Swing related questions should be posted in the Swing forum.

> I want to load a text file into a jlist.

[url http://java.sun.com/docs/books/tutorial/uiswing/components/list.html]How to Use Lists[/url]. Read the file one line at a time and at the data to the ListModel.

> I also want a function to save whatever in that jlist to a text file.

Read each item in the ListModel and write it to a file.

camickra at 2007-7-10 2:45:36 > top of Java-index,Java Essentials,Java Programming...