Skip to content

Commit

Permalink
disable radiobuttons
Browse files Browse the repository at this point in the history
  • Loading branch information
tainfante committed Jan 22, 2018
1 parent 9c50696 commit 4769dbc
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 21 deletions.
42 changes: 21 additions & 21 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified out/artifacts/KCC_App_jar/KCC_App.jar
Binary file not shown.
Binary file modified out/production/KCC_App/sample/Controller.class
Binary file not shown.
6 changes: 6 additions & 0 deletions src/sample/Controller.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -144,6 +146,8 @@ public void onOpen(ActionEvent actionEvent) {
Port.getInstance().close();
openBtn.setText("OPEN");
startBtn.setDisable(true);
internal.setDisable(true);
internal.setDisable(true);
}
}

Expand All @@ -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) {
Expand Down

0 comments on commit 4769dbc

Please sign in to comment.