• Post Reply Bookmark Topic Watch Topic
  • New Topic

Removing the file setSelectedFile from filechooser  RSS feed

 
Poorav Chaudhari
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

In my application, for one of the file save options I want to give a suggested file save name, which I am doing using a filechooser.setSelectedFile method. However I have another save functionality in the same application for which I don't want to pass a suggested default name. To remove the default file I am using the following line,
fileChooser.setSelectedFile(new File(""));

however, when I do this I get Application.name from my App.properties file as the default suggested name. Why is my application doing this. I am using Netbeans IDE to develop my application.

Thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!