Skip to content
This repository has been archived by the owner on Jun 26, 2022. It is now read-only.

Commit

Permalink
File Chooser start from current directory
Browse files Browse the repository at this point in the history
  • Loading branch information
requinDr committed Feb 3, 2022
1 parent ebb1270 commit a3d325b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/fr/fatestaynight/packager/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,8 @@ private void updateTexts() {
* Ouvre une fenêtre de dialogue pour trouver le fichier fate.exe
*/
private void findExe() {
JFileChooser choix = new JFileChooser();
String currentDir = System.getProperty("user.dir");
JFileChooser choix = new JFileChooser(currentDir);
FileFilter filter = new FileNameExtensionFilter("EXE File","exe");

choix.setFileFilter(filter);
Expand Down

0 comments on commit a3d325b

Please sign in to comment.