Skip to content

Commit 8fce4aa

Browse files
authored
Update README.md
1 parent e1b7d71 commit 8fce4aa

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,21 +88,22 @@ MenuItem menuItem = new MenuItem("Select me");
8888
Observable<ActionEvent> menuItemEvents =
8989
JavaFxObservable.fromActionEvents(menuItem);
9090
```
91+
92+
###Other Event Factories
93+
94+
There are also factories provided to convert events from a `Dialog`, `Window` or `Scene` into an `Observable`. If you would like to see factories for other components and event types, please let us know or put in a PR.
95+
9196
####Dialogs and Alerts
9297
```java
9398
Alert alert = new Alert(AlertType.CONFIRMATION);
9499
alert.setTitle("Confirmation");
95100
alert.setHeaderText("Please confirm your action");
96101
alert.setContentText("Are you ok with this?");
97102

98-
99103
JavaFxObservable.fromDialog(alert)
100104
.filter(response -> response.equals(ButtonType.OK))
101105
.subscribe(System.out::println,Throwable::printStackTrace);
102106
```
103-
###Other Event Factories
104-
105-
There are also factories provided to convert events from a `Window` as well as a `Scene` into an `Observable`. If you would like to see factories for other components and event types, please let us know or put in a PR.
106107

107108
#####Emitting Scene Events
108109

0 commit comments

Comments
 (0)