I may have confused you. Sorry. But I need a function that allows me to open up a file diaglog box, choose the file, and then load this text file into a listbox. I also need another function that does the same thing but for saving the information in a listbox to a text file. Thanks.
The term listbox is new to me. We have JList in Swing and a similar class List in the AWT. Could you say more about listbox - what is it, how does it work, what does it look like? Maybe we can make up or suggest something that will do what you want. Or, if you want to use Swing there is a page that shows available components by type: A Visual Index to the Swing Components. Both Swing and the AWT have file dialog components: JFileChooser and FileDialog.
Thanks to Craig Wood I have the following function:
This is good for JList's but I need it to work with AWT Lists. However there is no function called "getElementAt" Could someone please convert this function for me? Thanks!! [ March 16, 2007: Message edited by: Steven Alvarez ]