Tim McCormack
12/08/2019, 2:17 PMconfirm
suffers the same problem as creating a JavaFX dialog directly: The text gets cut off and you can't even resize the alert window to see the truncated message.Tim McCormack
12/08/2019, 2:19 PMconfirm(
title = "Delete post?",
header = "Delete this post?",
content = "The entire post and all of its attachments will be deleted irrevocably.",
actionFn = {
println("DELETING")
}
)
Tim McCormack
12/08/2019, 2:19 PMTim McCormack
12/08/2019, 2:21 PMTim McCormack
12/12/2019, 1:40 AMalbrechtroehm
12/13/2019, 3:09 PMmainmenu.replaceWith(workspace, sizeToScenne = true, ...)
kind of ugly, lagy or jumpy... on the other hand creating a new Window with find<WorkspaceView>().close()
find<MainMenu>().openWindow(escapeClosesWindow = false)
resulted in messing up the scopes (which i didn't cared about at all at that point) and some other stuff... but looks much better. Maybe someone has some thoughts on this ... ThanksMr.NiceGuy
12/15/2019, 4:43 PMLastExceed
12/16/2019, 1:53 PMLastExceed
12/17/2019, 1:46 PMlistview(blocks) {
setCellFactory {
val cell = ListCell<Block>()
cell.text = cell.item.toString() //nullref here because cell.item is null
return@setCellFactory cell
}
}
how do i get a reference to the item the cell is going to represent so I can set the cell text?sbyrne
12/17/2019, 2:06 PMTableCell.itemProperty()
.sbyrne
12/17/2019, 2:09 PMDouglas KN
12/19/2019, 3:14 AMgradle run
. That seemed like a bug in the javafx gradle plugin -- the error message was because it was running with --module-path
that had no arguments. I managed to solve it by downloading openjfx 11 and setting sdk = 'javafx-sdk-11.0.2'
. Now I can build and run the app both directly via gradle and in intellij. HOWEVER, now intellij is red-underlining all javafx references because it can't find the library.
How do I tell intellij where to find the javafx library so that I don't get the underlines and code completion starts working again?sbyrne
12/19/2019, 6:36 PMTim McCormack
12/25/2019, 3:18 PMalbrechtroehm
12/26/2019, 12:03 PMsbyrne
12/30/2019, 8:30 PMgroostav
01/03/2020, 12:02 AMcoroutineScope[Job]
and the static type of the return expression is Job
. Similarly the static type of coroutineScope[Dispatcher]
is Dispatcher
.
I'm looking at Node.properties: Map<Object, Object>
and wishing it was something similar to CoroutineContext
. Ideally I could write something like myNode.typedProps[ImportantListener]...
Has anybody implemented this?sbyrne
01/03/2020, 7:42 PMPerson
) that I am using as the value of an ItemViewModel
. It has a collection (e.g.: var hairColors:Set<String>
). How do I bind it to the ItemViewModel
? If I do val hairColors = bind(Person::hairColors)
, I get java.lang.ClassCastException: java.util.LinkedHashSet cannot be cast to javafx.collections.ObservableSet
. I think I need to do something with bind(forceObjectProperty=true)
and rebindOnChange
, but I am not sure what.Ngenge Senior
01/04/2020, 8:01 AMJDK 13
and Open JFX
but when I create a tornadofx project using IntelliJ plugin, it keeps failing.Hullaballoonatic
01/06/2020, 3:30 AMApp
, nor to provide multiple stage icons. Also why must we provide the entire Image
instead of the filepath and let the App
class handle the rest? Also no stage dimensions...
class Start : App(
title = "My App",
height = 300.0, width = 600.0,
primaryView = MainView::class,
icons = arrayOf("myIconS.png", "myIconM.png", "myIconL.png"),
stylesheets = arrayOf(MyStyleSheet1::class, MyStyleSheet2::class)
)
carlw
01/07/2020, 6:24 PMbjonnh
01/08/2020, 11:30 PMthomasnield
01/10/2020, 10:29 PMthomasnield
01/10/2020, 10:30 PMGarouDan
01/11/2020, 2:46 PMe: Supertypes of the following classes cannot be resolved. Please make sure you have the required dependencies in the classpath:
class tornadofx.UIComponent, unresolved supertypes: javafx.event.EventTarget
class <http://tornadofx.App|tornadofx.App>, unresolved supertypes: javafx.application.Application
For now I’d prefer to rely on Java 8 (because of some other modules of mine), my current Java configuration is:
openjdk version "1.8.0_232"
OpenJDK Runtime Environment (Zulu 8.42.0.23-CA-macosx) (build 1.8.0_232-b18)
OpenJDK 64-Bit Server VM (Zulu 8.42.0.23-CA-macosx) (build 25.232-b18, mixed mode)
Arthur
01/12/2020, 1:29 PMArthur
01/12/2020, 8:55 PMalbrechtroehm
01/14/2020, 5:01 PMprivate val costRecalculationTriggerProperty = SimpleObjectProperty<ObservableList<Property<*>>>(
FXCollections.observableArrayList { p -> arrayOf<Observable>(p) })
private var costRecalculationTrigger: ObservableList<Property<*>> by costRecalculationTriggerProperty
Is there something else i could use which is kind of more readable?geepawhill
01/16/2020, 2:34 AMtieskedh
01/20/2020, 4:10 PM