Hello, I am trying to make a program which creates a JTable with some info in it and then exports the table to Excel. I already found the code which does that, but I was wondering if there is a way to give the user a possibility to choose the path where he wants to save the Excel file. Like for example when you download a file from the internet and a small window appears which gives a tree-like structure of the files and folders on the computers.
No, it's a file chooser. It doesn't do any file saving, it just lets the user choose a file (or more precisely, the name of a file). But you already have the file-saving code written, right?
Joined: Jul 08, 2011
I have it, but I needed the file chooser to let me get the path where I want my file to be saved (the folder path). But I can't seem to be able to do that, to get the path. Once I have the pth, I only need to add to it the filename, which will always be the same.