diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 9e04b25..c5fc71d 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -77,11 +77,11 @@ - + - - + + @@ -109,8 +109,8 @@ - - + + @@ -118,7 +118,7 @@ - + @@ -853,17 +853,6 @@ - - - - - - - - - - - @@ -881,8 +870,8 @@ - - + + @@ -891,14 +880,25 @@ - - + + + + + + + + + + + + + diff --git a/out/artifacts/KCC_App_jar/KCC_App.jar b/out/artifacts/KCC_App_jar/KCC_App.jar index 63b8ef3..54f06d0 100644 Binary files a/out/artifacts/KCC_App_jar/KCC_App.jar and b/out/artifacts/KCC_App_jar/KCC_App.jar differ diff --git a/out/production/KCC_App/sample/Controller.class b/out/production/KCC_App/sample/Controller.class index 0541fa1..c6c4c4d 100644 Binary files a/out/production/KCC_App/sample/Controller.class and b/out/production/KCC_App/sample/Controller.class differ diff --git a/src/sample/Controller.java b/src/sample/Controller.java index f04d03e..ae7f7c1 100644 --- a/src/sample/Controller.java +++ b/src/sample/Controller.java @@ -131,6 +131,8 @@ public void onOpen(ActionEvent actionEvent) { Port.getInstance().open(comPort); openBtn.setText("CLOSE"); startBtn.setDisable(false); + internal.setDisable(false); + external.setDisable(false); } else{ Alert alert = new Alert(Alert.AlertType.ERROR); @@ -144,6 +146,8 @@ public void onOpen(ActionEvent actionEvent) { Port.getInstance().close(); openBtn.setText("OPEN"); startBtn.setDisable(true); + internal.setDisable(true); + internal.setDisable(true); } } @@ -153,6 +157,8 @@ public void initialize(URL location, ResourceBundle resources) { external.setToggleGroup(group); internal.setSelected(true); startBtn.setDisable(true); + internal.setDisable(true); + external.setDisable(true); } public void onChooseMode(ActionEvent actionEvent) {