Java JFileChooser makeFileChooser()

Here you can find the source of makeFileChooser()

Description

make File Chooser

License

Apache License

Declaration

public static JFileChooser makeFileChooser() 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.io.File;
import javax.swing.JFileChooser;

public class Main {
    public static JFileChooser makeFileChooser() {
        final JFileChooser temp = new JFileChooser();
        final String dir = System.getProperty("user.dir");
        final File fileDir = new File(dir);
        temp.setCurrentDirectory(fileDir);
        return temp;
    }//w  w  w.j  a v a  2  s  .c  om
}

Related

  1. initFileChooser(JFileChooser fileChooser, FileFilter filter)
  2. isDriveTraversable(File drive)
  3. loadFile()
  4. loadFile(Component parent, String title)
  5. loadFileAs(Class clazz, String json)
  6. openDataFileChooser(Component com)
  7. openFile()
  8. openFile(String fileExtension)
  9. promptFile(File file, FileFilter filter, String title)