Skip to content

Instantly share code, notes, and snippets.

🚴‍♂️
probably coding, biking, or in the emergency room due to biking or coding poorly

Stephen Byrne stephenbyrne-mfj

🚴‍♂️
probably coding, biking, or in the emergency room due to biking or coding poorly
View GitHub Profile
@stephenbyrne-mfj
stephenbyrne-mfj / Test.kt
Created Sep 25, 2019
TornadoFX tableview - always editable, dirty indicator, add/remove rows
View Test.kt
import javafx.beans.property.*
import javafx.collections.ObservableList
import javafx.scene.paint.Color
import tornadofx.*
/**
* Requirements:
*
* Show a table of Persons with 3 columns: name, title, and a "-" button to remove the person.
* There is a "+" button to add a person.
@stephenbyrne-mfj
stephenbyrne-mfj / Test.kt
Created Sep 25, 2019
TornadoFX tableview - always editable, dirty indicator, add/remove rows, swap input control
View Test.kt
import javafx.beans.property.*
import javafx.collections.ObservableList
import javafx.scene.paint.Color
import tornadofx.*
/**
* Requirements:
*
* Show a table of Persons with 3 columns: name, title, and a "-" button to remove the person.
* There is a "+" button to add a person.
@stephenbyrne-mfj
stephenbyrne-mfj / MyTornadoApp.kt
Created Dec 18, 2018
TornadoFX example of opening a normal window or a selection window based on command line args
View MyTornadoApp.kt
import tornadofx.*
// Example of opening a normal window or a selection window based on command line args
// If there is an argument, it is the ID of the model to open a normal window for.
// If there is no argument, select an ID and open a window for it.
// model - also used outside of GUI
class MyModel(val id:Int) {
fun doStuff() {
println( "My id is ${id}" )
You can’t perform that action at this time.