JavaFX provides the EventHandler functional interface to handle events. It provides the Builder functional interface which is useful for generating UI components. Factories that generate JavaFX builders can be written using the BuilderFactory functional interface. It is possible to create observable collections in JavaFX. Then listeners can be attached which are invoked when the collections change. JavaFX provides functional interface InvalidationListener that is invoked when an Observable object becomes invalid.