This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}" ) |