Yep you are right, I should have explained a bit more.
It's true that it is empty if you open the open/save filechooser first time....but let say if you save a file or open a file and then press open/save filechooser then it's not empty by default. The name on the file name filed is the file's name u've opened or saved.
With File name label I mean the file name field where you write the file's name you want to save/open
If you just want to clear the file name field the next time the FileChooser dialog is displayed, there are two choices - you can either create a new FlieChooser, or you can reuse the previous FileChooser and set the selected file to a file with no name, e.g:
final JFileChooser fc = new JFileChooser();
int returnVal = fc.showOpenDialog(component);
// clear file name for next selection
returnVal = fc.showOpenDialog(component);
Simplicity is the ultimate sophistication...
L. Da Vinci
Please use [CODE]...your code here...[/CODE] tags when posting code. If you get an error, please post the full error message and stack trace, if present.