edvin
12/16/2016, 1:42 PMedvin
12/16/2016, 1:43 PMron
12/16/2016, 1:43 PMron
12/16/2016, 1:43 PMedvin
12/16/2016, 1:43 PMokButton.disableProperty().bind(booleanBinding(editor.textProperty(), editor.textProperty()) { value.isBlank() })
edvin
12/16/2016, 1:44 PMedvin
12/16/2016, 1:44 PMron
12/16/2016, 1:44 PMedvin
12/16/2016, 1:46 PMbooleanBinding
and stringBinding
have overloads for none-observable receivers, and they don't add the receiver as a dependency (and can only do so if the receiver is an observablevalue)edvin
12/16/2016, 1:49 PMedvin
12/16/2016, 1:50 PMeditor.textProperty()
parameters. Very nice that you found this!gtnarg
12/16/2016, 1:53 PMron
12/16/2016, 2:01 PMedvin
12/16/2016, 2:26 PMron
12/16/2016, 2:26 PMron
12/16/2016, 2:30 PMron
12/16/2016, 2:30 PMron
12/16/2016, 2:31 PMron
12/16/2016, 2:32 PMron
12/16/2016, 2:32 PMjava.lang.IllegalStateException: Not on FX application thread; currentThread = qtp857357263-26
at com.sun.javafx.tk.Toolkit.checkFxUserThread(Toolkit.java:236)
at com.sun.javafx.tk.quantum.QuantumToolkit.checkFxUserThread(QuantumToolkit.java:423)
ron
12/16/2016, 2:39 PMcarlw
12/16/2016, 2:43 PMedvin
12/16/2016, 3:03 PMedvin
12/16/2016, 3:04 PMPlatform.runLater {}
and don't do all that back and forth business. You might actually be better off putting this interaction in a normal TornadoFX view and show that.carlw
12/16/2016, 3:08 PMBuilding 42% > bkcourse appcompileKotline: /opt/atlassian/pipelines/agent/build/bkcourse-app/src/main/kotlin/bkcourse/app/LoginView.kt: (3, 8): Unresolved reference: javafx
edvin
12/16/2016, 3:08 PMfind<MyController>()
in the init
block of the app to make sure it's loaded. From there you could init this box.edvin
12/16/2016, 3:08 PMcarlw
12/16/2016, 3:09 PMcarlw
12/16/2016, 3:09 PMedvin
12/16/2016, 3:10 PM