I'm not sure I fully understand your request. Did you check out the Java tutorial section on JFileChooser
? It contains information on how to display the appropriate type of dialog. You can configure it for Open, Save, directories or files only, and so on.
You only really use JFileChooser to get File instances using the getSelectedFile() method. Once you have this you can find the path of the selected file and then take the appropriate action (create it if the action is a save; open the file and read it for loading; just display the path as a string for information, etc).