Browse Source

feat: 优化路径选择

hexleo 5 years ago
parent
commit
733289b96a

+ 1 - 1
Android/PlayerProj/animtool/src/main/java/com/tencent/qgame/playerproj/animtool/ui/ToolUI.java

@@ -327,7 +327,7 @@ public class ToolUI {
         btnInputPath.addActionListener(new ActionListener() {
         btnInputPath.addActionListener(new ActionListener() {
             @Override
             @Override
             public void actionPerformed(ActionEvent actionEvent) {
             public void actionPerformed(ActionEvent actionEvent) {
-                JFileChooser fileChooser = new JFileChooser();
+                JFileChooser fileChooser = new JFileChooser(new File(getInputPath()));
                 fileChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
                 fileChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
                 int returnVal = fileChooser.showOpenDialog(fileChooser);
                 int returnVal = fileChooser.showOpenDialog(fileChooser);
                 if(returnVal == JFileChooser.APPROVE_OPTION) {
                 if(returnVal == JFileChooser.APPROVE_OPTION) {