Here you can find the source of SHOW_JFILECHOOSER(String title, String approvetext, int fileselectionmode, boolean multiselection)
public static JFileChooser SHOW_JFILECHOOSER(String title, String approvetext, int fileselectionmode, boolean multiselection)
//package com.java2s; //License from project: Open Source License import javax.swing.JFileChooser; public class Main { public static JFileChooser SHOW_JFILECHOOSER(String title, String approvetext, int fileselectionmode, boolean multiselection) { JFileChooser chooser = new JFileChooser(); //chooser.setCurrentDirectory(new java.io.File(".")); chooser.setDialogTitle(title);/* w w w .j a v a2 s . c o m*/ chooser.setApproveButtonText(approvetext); chooser.setFileSelectionMode(fileselectionmode); chooser.setMultiSelectionEnabled(multiselection); return chooser; } }