ron
12/20/2017, 8:24 PMimage.png▾
r4zzz4k
12/20/2017, 8:31 PMfind<MyFragment>(params = mapOf(...)).openWindow(...)?.apply { isFullscreen = true }
. The thing is my fragment's constructor is called two times in a row -- first by my own invocation of find
with properly passed params
, and the second time this stuff can be found in stack trace:
...
java.lang.Class.newInstance(Class.java:442)
tornadofx.FXKt.find(FX.kt:423)
tornadofx.FXKt.find$default(FX.kt:393)
tornadofx.FX$Companion.replaceComponent(FX.kt:262)
tornadofx.NodesKt.reloadViews(Nodes.kt:144)
...
javafx.stage.Window.setFocused(Window.java:439)
...
java.security.AccessController.doPrivileged(Native Method)
...
Of course it doesn't find any parameters and crashes in my onDock()
later.
Any suggestions?edvin
12/20/2017, 8:33 PMr4zzz4k
12/20/2017, 8:42 PMdoPriviledged()
in the second stacktrace.
I may be wrong, of course.ron
12/20/2017, 8:56 PMedvin
12/20/2017, 9:54 PMthomasnield
12/20/2017, 10:12 PMjavafxpert
12/20/2017, 11:05 PMjavafxpert
12/20/2017, 11:08 PMHere’s a screenshot▾
javafxpert
12/20/2017, 11:18 PMcarlw
12/20/2017, 11:20 PMcarlw
12/20/2017, 11:22 PMjavafxpert
12/20/2017, 11:26 PMthomasnield
12/21/2017, 6:48 AMedvin
12/21/2017, 7:51 AMedvin
12/21/2017, 7:52 AMron
12/21/2017, 8:49 AMclass EntryForm : View("Entry Form"){
val entry : MeasurementModel by inject()
override val root = form {
fieldset {
field("sys") {textfield(entry.sys)}
field("dia") {textfield(entry.dia)}
field("pulse"){textfield(entry.pulse)}
field ("Time"){datepicker (entry.time)}
button("press me").action {
entry.rollback()
println(entry.sys)
}
}
}
}
ron
12/21/2017, 8:50 AMCaused by: java.text.ParseException: Unparseable number: "sd"
at java.text.NumberFormat.parse(NumberFormat.java:385)
at javafx.util.converter.NumberStringConverter.fromString(NumberStringConverter.java:94)
... 52 more
ron
12/21/2017, 9:42 AMron
12/21/2017, 10:35 AMron
12/21/2017, 10:36 AMedvin
12/21/2017, 10:36 AMron
12/21/2017, 10:36 AMron
12/21/2017, 10:37 AMron
12/21/2017, 10:37 AMron
12/21/2017, 10:38 AMedvin
12/21/2017, 10:41 AMron
12/21/2017, 10:41 AMtextProperty
is not from javafx.scene.control.TextField` but from AbstractFieldron
12/21/2017, 10:42 AM