import java.awt.Frame;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import javax.swing.JFileChooser;
import javax.swing.JPanel;
public class SwingTest {
public static void actionPerformed() {
Frame frame=new Frame();
frame.setAlwaysOnTop(true);
JFileChooser chooser = new JFileChooser();
//设置为多选
chooser.setMultiSelectionEnabled(true);
//能够选择文件夹和文件
chooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);
int result = chooser.showOpenDialog(new JPanel());