Saving with a JFileChooser
I am using a JFileChooser and the showSaveDialoge() and setSelectionMode(JfileChooser.DIRECTORIES_ONLY) to set where a preselected file will be saved and what it will be called. I want the user to be able to choose the name the new version, and where to put it. How do I go about this? I also wish to choose a default name. I hope the codes below implemented inline with your question requirements. The criteria in your question are answered in the code comment. If you need clarification, please let me know. import java.awt.BorderLayout; import java.awt.Insets; import java.awt.event.ActionEvent;