Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.goxr3plus:javafx-web-browser:V9.1.0'
}
dependencies {
implementation("com.github.goxr3plus:javafx-web-browser:V9.1.0")
}
<dependency>
<groupId>com.github.goxr3plus</groupId>
<artifactId>javafx-web-browser</artifactId>
<version>V9.1.0</version>
</dependency>
libraryDependencies += "com.github.goxr3plus" % "javafx-web-browser" % "V9.1.0"
:dependencies [[com.github.goxr3plus/javafx-web-browser "V9.1.0"]]
Java 10 Web Browser release ===> On the way ( I can't get it work with JitPack i don't know why ..... )
Older Java 8 and 9 releases here
1.
You have to add it as a dependency , you can use JitPack.io
Step 1. Add the JitPack repository to your build file
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Step 2. Add the dependency
<dependency>
<groupId>com.github.goxr3plus</groupId>
<artifactId>JavaFX-Web-Browser</artifactId>
<version>Tag</version>
</dependency>
Then from inside your code you can create an intance or multiple instances of Browser like this:
public WebBrowserController webBrowser = new WebBrowserController();
and add it for example inside a BorderPane :
BorderPane borderPane = new BorderPane( webBrowser );
Happy :) ? Cause i am ...