diff options
Diffstat (limited to 'src/de/fhswf/in/inf')
| -rw-r--r-- | src/de/fhswf/in/inf/upnfx/view/MainViewController.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/de/fhswf/in/inf/upnfx/view/MainViewController.java b/src/de/fhswf/in/inf/upnfx/view/MainViewController.java index 1ee9173..76ab51a 100644 --- a/src/de/fhswf/in/inf/upnfx/view/MainViewController.java +++ b/src/de/fhswf/in/inf/upnfx/view/MainViewController.java @@ -102,7 +102,7 @@ public class MainViewController private void initialize() { txtField.textProperty().addListener(e -> { - btnComma.setDisable(!newNumber.isEmpty().get() && newNumber.get().contains(".")); + btnComma.setDisable(newNumber.isEmpty().get() || newNumber.get().contains(".")); btnZero.setDisable(!newNumber.isEmpty().get() && !newNumber.get().contains(".") && newNumber.get().startsWith("0")); }); |
