<@U6B7CC50S> Hi :slightly_smiling_face: Can you po...
# tornadofx
e
@pim Hi 🙂 Can you post a complete sample with your 'MyObject' and sample data?
p
Copy code
val myList = FXCollections.observableArrayList<SPIGroup>().apply {
        add(
                SPIGroup(
                        "Group 1",
                        listOf(
                                SPI("SPI 1", InetAddress.getLocalHost()),
                                SPI("SPI 2", InetAddress.getLocalHost())
                        )
                )
        )
    }
I renamed
SPIGroup
to
MyObject
in the sample.
The SPIGroup and SPI are just data classes that share an interface with a
name
field. This field is used in
cellFormat
.
e
Please post a complete app so we can run it to look at your issue 🙂
p
That should be runnable. (Sorry, missing some extensions)
e
Great, checking now. PS: Use the plus icon and new Code or Text Snippet instead of using backticks 🙂
I can't run that code, you have several references to jfxFunctions that you probably created locally as well as something called centeredInPane and a type called Nameable.
OK, repost the complete thing as a code snippet 🙂
In the mean time, try defining your populate function like this:
(Posting in the main channel)
p
I've created a runnable version for you:
<removed>
I can't add code files in threads I think
e
I think you're right. Looking at your code now, will post my changes in the main channel.