How to create Hyper link in JavaFx
@FXML
void openBrowser(ActionEvent actionEvent){
if(Desktop.isDesktopSupported())
{
try {
Desktop.getDesktop().browse(new URI("http://technogearup.com/"));
} catch (IOException e1) {
e1.printStackTrace();
} catch (URISyntaxException e1) {
e1.printStackTrace();
}
}
}
useful resource : https://www.reddit.com/r/javahelp/comments/4bqcci/how_to_make_a_link_hyperlink_in_javafx/
Comments
Post a Comment