summaryrefslogtreecommitdiffstats
path: root/src/de/fhswf/in/inf/upnfx/view
diff options
context:
space:
mode:
authorStefan Suhren <suhren.stefan@fh-swf.de>2015-06-15 14:34:14 +0200
committerStefan Suhren <suhren.stefan@fh-swf.de>2015-06-15 14:34:14 +0200
commit1844074b1255888fb519a4b6ffcfac06a27b9f19 (patch)
tree178d3269eb37c27c407528961b95cbc37ed5bfa2 /src/de/fhswf/in/inf/upnfx/view
parent9f621c337166ccb83ab9e9422444323cf6700282 (diff)
downloadUpnFx-1844074b1255888fb519a4b6ffcfac06a27b9f19.tar.gz
UpnFx-1844074b1255888fb519a4b6ffcfac06a27b9f19.zip
Fix comma disabled logic
Diffstat (limited to 'src/de/fhswf/in/inf/upnfx/view')
-rw-r--r--src/de/fhswf/in/inf/upnfx/view/MainViewController.java2
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"));
});