In JavaFx, we can use hyper-links to refer the web pages. It is similar to anchor links in HTML. javafx.scene.control.HyperLink class provides all the necessary methods to deal with JavaFX hyper-links.
The following code implements HyperLink into our application.
Attaching the image with the link
we can attach the image with the hyperlink by calling an instance method setGraphic(). It accepts the object of ImageView class. The following code attaches the image with the hyperlink.