Question about ui.access

I’d say that in this case it better be in the MainPage class, as the JS code updates it.

In my code I’m using Java 8 syntax (lambda), you don’t seem to have it, so just follow the example in the book, it uses older anonymous classe syntax.