From 6f8c807ff3a9bdf78aefb3048d679bc388b89a3b Mon Sep 17 00:00:00 2001 From: PaoloPinkel <eude365sup@outlook.com> Date: Mon, 2 Dec 2019 14:12:56 +0100 Subject: [PATCH] =?UTF-8?q?GuiController=20Walzenanzeige=20mit=20r=C3=B6mi?= =?UTF-8?q?schen=20Zahlen,=20zur=C3=BCcksetzen=20mit=20neu=20generiertem?= =?UTF-8?q?=20Spruchschl=C3=BCssel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/projekt/enigma/GuiController.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/projekt/enigma/GuiController.java b/src/main/java/projekt/enigma/GuiController.java index 54d179a..859ed36 100644 --- a/src/main/java/projekt/enigma/GuiController.java +++ b/src/main/java/projekt/enigma/GuiController.java @@ -282,7 +282,7 @@ public class GuiController { */ @FXML private void gedrueckteTaste(ActionEvent e) { - if (e.getSource() == btnSenden) sendeFunkspruch(); + if (e.getSource() == btnSenden && tfCodiert.getText()!="") sendeFunkspruch(); if (e.getSource() == btnEmpfangen) empfangeFunkspruch(); if (e.getSource() == btnDelete) loeschen(); if (e.getSource() == btnReset) { @@ -399,6 +399,8 @@ public class GuiController { setzeRing(2, Integer.parseInt(mItm.getText()) - 1); if (mBtn.getId().equals(mBtnNotchPos3.getId())) setzeRing(3, Integer.parseInt(mItm.getText()) - 1); + tfCodiert.setText(""); + tfKlartext.setText(""); } -- GitLab