弹框代码
package com.edu.demo;
import java.util.*;
import java.io.*;
import javax.swing.JFileChooser;
import javax.swing.JOptionPane;
public class ReadFileUsingJFileChooser {
/**
* @param args
* @throws Exception
*/
public static void main(String[] args) throws Exception {
// TODO Auto-generated method stub
String inputValue = JOptionPane.showInputDialog("Please input a value");
}
}