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.

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





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA