From 1126631c7558bd774d955c2f655d63f2cfdb3b2d Mon Sep 17 00:00:00 2001 From: Guleri24 Date: Sun, 13 Mar 2022 17:29:09 +0530 Subject: [PATCH] Minor Fixes - Correct MS Excel execution command added --- .../java/com/horizonxe/MainController.java | 6 +- .../resources/com.horizonxe/fis-form.fxml | 68 +++++++++++-------- 2 files changed, 43 insertions(+), 31 deletions(-) diff --git a/src/main/java/com/horizonxe/MainController.java b/src/main/java/com/horizonxe/MainController.java index 0d924a4..9016e2c 100644 --- a/src/main/java/com/horizonxe/MainController.java +++ b/src/main/java/com/horizonxe/MainController.java @@ -15,6 +15,8 @@ public class MainController { private static BufferedWriter writer; + private final List projects = new ArrayList<>(); + private final List modules = new ArrayList<>(); @FXML public Button triggerCmd; @FXML @@ -22,8 +24,6 @@ public class MainController { @FXML public ComboBox moduleMenu; public AnchorPane mainView; - private final List projects = new ArrayList<>(); - private final List modules = new ArrayList<>(); private File executableFile; private File dataFile; private boolean isWindows; @@ -107,7 +107,7 @@ public void triggerCmd() throws IOException { writer.close(); if (isWindows) { - Runtime.getRuntime().exec("cmd /c start cmd.exe /K \"" + executableFile.getAbsolutePath() + "\""); + Runtime.getRuntime().exec("cmd /c start excel /K \"" + executableFile.getAbsolutePath() + "\""); stage.close(); } else { stage.close(); diff --git a/src/main/resources/com.horizonxe/fis-form.fxml b/src/main/resources/com.horizonxe/fis-form.fxml index 56332e1..b1290e1 100644 --- a/src/main/resources/com.horizonxe/fis-form.fxml +++ b/src/main/resources/com.horizonxe/fis-form.fxml @@ -1,57 +1,69 @@ - - - + - - - + - - - + + - - - + + + -
- - -