JavaFX HyperLink

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.

Output:


JavaFX HyperLink

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.

Output:


JavaFX HyperLink 1
Next TopicJavaFX Slider




Contact US

Email:[email protected]

JavaFX Hyperlink
10/30