Javatpoint Logo
Javatpoint Logo

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.


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.


JavaFX HyperLink 1
Next TopicJavaFX Slider

Youtube For Videos Join Our Youtube Channel: Join Now


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Trending Technologies

B.Tech / MCA