I have no clue how to use JFileChooser to save and load files. I know I have a thread in Java Programming Forums, but this one will deal just with saving and loading.
:o:)
Printable View
I have no clue how to use JFileChooser to save and load files. I know I have a thread in Java Programming Forums, but this one will deal just with saving and loading.
:o:)
Hello and welcome to the java-forums.org.
With regards to your question, if I had a similar question, the first place I'd look would be the Oracle Java Tutorials to see if there was a relevant chapter covering this, and in fact there is: How to use File Choosers
So knowing this, my advice to you is to study the tutorial and the sample code, and then come on back with a specific question if you don't understand a portion of it.
Best of luck and again, welcome!
Asking how to use JFileChooser to save and load files is like asking how to use a restaurant menu to fill your stomach. Once you select your meal, it still has to be ordered, prepared and served before you can tuck in :)
First sentence from the API (emphasis added):
JFileChooser provides a simple mechanism for the user to choose a file.
Recommended reading:
Lesson: Basic I/O (The Java™ Tutorials > Essential Classes)
Nice that there's no bill to pay afterwards ;)
db