i have created code for save button the code worked but the saved file was not in the specified location please help.. the code is
JFileChooser chooser_save=new JFileChooser();
chooser_save.showSaveDialog(null);
File file=chooser_save.getSelectedFile();