From 1e9980708471db59f5e16ffe9bda6712e5a14f77 Mon Sep 17 00:00:00 2001 From: Ezequiel Valencia Date: Tue, 10 Sep 2024 15:10:50 -0400 Subject: [PATCH] Choose Selected Directory Not Parent Directory --- .../src/main/java/org/vcell/N5/SimResultsLoader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/view-simulation-results/src/main/java/org/vcell/N5/SimResultsLoader.java b/view-simulation-results/src/main/java/org/vcell/N5/SimResultsLoader.java index 96ef3e3..99fb5a2 100644 --- a/view-simulation-results/src/main/java/org/vcell/N5/SimResultsLoader.java +++ b/view-simulation-results/src/main/java/org/vcell/N5/SimResultsLoader.java @@ -223,7 +223,7 @@ public static void openLocalN5FS(ArrayList filesToOpen){ fileChooser.setAcceptAllFileFilterUsed(false); int result = fileChooser.showOpenDialog(null); if (result == JFileChooser.APPROVE_OPTION){ - File file = fileChooser.getCurrentDirectory(); + File file = fileChooser.getSelectedFile(); N5ExportTable.exportTableDialog.setCursor(new Cursor(Cursor.WAIT_CURSOR)); Thread openN5FileDataset = new Thread(() -> { try{