Skip to content

Commit 3f7feb0

Browse files
committed
forgot java code tags in README
1 parent a9e03cf commit 3f7feb0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ Note that many Nodes in JavaFX will have an initial value, which sometimes can b
8383
###ObservableValue Changes
8484

8585
For every change to an `ObservableValue`, you can emit the old value and new value as a pair. The two values will be wrapped up in a `Change` class and you can access them via `getOldVal()` and `getNewVal()`. Just call the `JavaFxObservable.fromObservableValueChanges()` factory.
86-
```
86+
87+
```java
8788
SpinnerValueFactory<Integer> svf = new SpinnerValueFactory.IntegerSpinnerValueFactory(0, 100);
8889
Spinner spinner = new Spinner<>();
8990
spinner.setValueFactory(svf);
@@ -98,7 +99,7 @@ Subscription subscription = JavaFxObservable.fromObservableValueChanges(spinner.
9899
###Binding
99100
You can convert an RxJava `Observable` into a JavaFX `Binding` by calling the `JavaFxSubscriber.toBinding()` factory. Calling the `dispose()` method on the `Binding` will handle the unsubscription from the `Observable`.
100101

101-
```
102+
```java
102103
Button incrementBttn = new Button("Increment");
103104
Label incrementLabel = new Label("");
104105

0 commit comments

Comments
 (0)