I'm trying to use the tableview, I am copying the ...
# tornadofx
p
I'm trying to use the tableview, I am copying the table to the clipboard in a csv format like this:
Copy code
button("copy all").action {
    val clipboard = Clipboard.getSystemClipboard()
    val content = ClipboardContent()
    var copyString = table.items[0].propsToCsv()
    copyString += table.items.joinToString("\n") {rowItem ->
        rowItem.toCsv()
    }
    content.putString(copyString)
    clipboard.setContent(content)
}