@@ -26,12 +26,12 @@ class FxAsFlowApp: Application(), CoroutineScope {
26
26
override val coroutineContext: CoroutineContext
27
27
get() = JavaFx + job
28
28
29
- private val incrementBttn = Button (" Increment" )
30
- private val incrementLabel = Label (" " )
31
- private val textInput = TextField ()
32
- private val flippedTextLabel = Label ()
33
- private val spinner = Spinner <Int >()
34
- private val spinnerChangesLabel = Label ()
29
+ private val incrementBttn = Button (" Increment" )
30
+ private val incrementLabel = Label (" " )
31
+ private val textInput = TextField ()
32
+ private val flippedTextLabel = Label ()
33
+ private val spinner = Spinner <Int >()
34
+ private val spinnerChangesLabel = Label ()
35
35
36
36
public override fun start ( primaryStage : Stage ) {
37
37
val gridPane = GridPane ()
@@ -61,7 +61,7 @@ class FxAsFlowApp: Application(), CoroutineScope {
61
61
62
62
init {
63
63
// Initializing the "Increment" button
64
- val stringProperty = SimpleStringProperty (" " )
64
+ val stringProperty = SimpleStringProperty ()
65
65
var i = 0
66
66
incrementBttn.onAction = EventHandler {
67
67
i + = 1
@@ -76,7 +76,7 @@ class FxAsFlowApp: Application(), CoroutineScope {
76
76
}
77
77
incrementLabel.textProperty().bind(stringProperty)
78
78
// Initializing the reversed text field
79
- val stringProperty2 = SimpleStringProperty (" " )
79
+ val stringProperty2 = SimpleStringProperty ()
80
80
launch {
81
81
textInput.textProperty().asFlow().collect {
82
82
if (it != null ) {
@@ -88,7 +88,7 @@ class FxAsFlowApp: Application(), CoroutineScope {
88
88
// Initializing the spinner
89
89
spinner.valueFactory = SpinnerValueFactory .IntegerSpinnerValueFactory (0 , 100 )
90
90
spinner.isEditable = true
91
- val stringProperty3 = SimpleStringProperty (" " )
91
+ val stringProperty3 = SimpleStringProperty ()
92
92
launch {
93
93
spinner.valueProperty().asFlow().collect {
94
94
if (it != null ) {
0 commit comments