edvin
10/17/2016, 2:18 PMSWT UI▾
edvin
10/17/2016, 2:18 PMcarlw
10/17/2016, 2:19 PMedvin
10/17/2016, 2:19 PMedvin
10/17/2016, 2:19 PMTornadoFX version▾
edvin
10/17/2016, 2:19 PMedvin
10/17/2016, 2:19 PMcarlw
10/17/2016, 2:21 PMcarlw
10/17/2016, 2:24 PMcarlw
10/17/2016, 2:26 PMcarlw
10/17/2016, 2:27 PMjchildress
10/17/2016, 2:54 PMedvin
10/17/2016, 3:28 PMjchildress
10/17/2016, 3:34 PMedvin
10/17/2016, 3:43 PMchooseDirectory
is now committed. It has an optional initialDirectory
parameter. For chooseFile
I can't add it without breaking backwards compatibility, but you can just do chooseFile(...) { initialDirectory = dir }
do configure it though. Let me know how it works, ok?edvin
10/17/2016, 3:46 PMoverride val root = buildMyUiHere
block in the same way as FXML. I also avoid having to mention all the ui elements using @FXML/fxid()
because binding is done when I build the UI. I do add setOnAction
blocks, but I always just call functions, so it is similar to FXML in that regard as well. FXML is a perfectly good way to go, and preferred if you have designers working on the app for sure.edvin
10/17/2016, 3:51 PMjchildress
10/17/2016, 3:54 PMcarlw
10/17/2016, 3:55 PMcarlw
10/17/2016, 3:56 PMedvin
10/17/2016, 3:57 PMedvin
10/17/2016, 3:58 PMfxid()
with type safe builders to extract ui components. That would be pretty neat...carlw
10/17/2016, 3:59 PMedvin
10/17/2016, 4:00 PMedvin
10/17/2016, 4:00 PMcarlw
10/17/2016, 4:01 PMedvin
10/17/2016, 4:02 PMedvin
10/17/2016, 4:03 PMcarlw
10/17/2016, 4:03 PMedvin
10/17/2016, 4:03 PM