Skip to content

Commit

Permalink
feat: 优化路径选择
Browse files Browse the repository at this point in the history
  • Loading branch information
hexleo committed Dec 16, 2020
1 parent cdfba95 commit 733289b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ private JPanel getPathLayout() {
btnInputPath.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent actionEvent) {
JFileChooser fileChooser = new JFileChooser();
JFileChooser fileChooser = new JFileChooser(new File(getInputPath()));
fileChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
int returnVal = fileChooser.showOpenDialog(fileChooser);
if(returnVal == JFileChooser.APPROVE_OPTION) {
Expand Down

0 comments on commit 733289b

Please sign in to comment.