diff --git a/build.gradle.kts b/build.gradle.kts
index d48487a..18c0d64 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -31,7 +31,7 @@ plugins {
id("org.jetbrains.kotlin.plugin.compose") version "2.0.0"
}
-val jxBrowserVersion by extra { "8.15.0" } // The version of JxBrowser used in the examples.
+val jxBrowserVersion by extra { "8.16.0" } // The version of JxBrowser used in the examples.
val guavaVersion by extra { "29.0-jre" } // Some of the examples use Guava.
repositories {
diff --git a/examples/src/main/java/com/teamdev/jxbrowser/examples/SslCertificateError.java b/examples/src/main/java/com/teamdev/jxbrowser/examples/SslCertificateError.java
index 3a0e557..931639a 100644
--- a/examples/src/main/java/com/teamdev/jxbrowser/examples/SslCertificateError.java
+++ b/examples/src/main/java/com/teamdev/jxbrowser/examples/SslCertificateError.java
@@ -28,19 +28,21 @@
import java.awt.BorderLayout;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
+import java.text.MessageFormat;
import javax.swing.JFrame;
import javax.swing.SwingUtilities;
import javax.swing.WindowConstants;
/**
- * This example demonstrates how to ignore SSL certificate errors
- * and continue loading a website with an invalid SSL certificate.
+ * This example demonstrates how to ignore SSL certificate errors and continue
+ * loading a website with an invalid SSL certificate.
*/
public final class SslCertificateError {
public static void main(String[] args) {
var engine = Engine.newInstance(
- EngineOptions.newBuilder(RenderingMode.HARDWARE_ACCELERATED).build());
+ EngineOptions.newBuilder(RenderingMode.HARDWARE_ACCELERATED)
+ .build());
var browser = engine.newBrowser();
SwingUtilities.invokeLater(() -> {
@@ -62,11 +64,10 @@ public void windowClosing(WindowEvent e) {
browser.set(CertificateErrorCallback.class, (params, tell) -> {
System.out.println(
- "Request URL: " + params.url() + "\n"
- + "Reason of the certificate error: "
- + params.error().getValueDescriptor() + "(" + params.error().getNumber()
- + ")" + "\n"
- + "Invalid SSL certificate.: " + params.certificate() + "\n");
+ MessageFormat.format(
+ "Request URL: {0}\nReason of the certificate error: {1}\nInvalid SSL certificate.: {2}\n",
+ params.url(), params.error(),
+ params.certificate()));
tell.allow();
});
diff --git a/examples/src/main/kotlin/com/teamdev/jxbrowser/examples/SslCertificateError.kt b/examples/src/main/kotlin/com/teamdev/jxbrowser/examples/SslCertificateError.kt
index 2a72739..67fd9da 100644
--- a/examples/src/main/kotlin/com/teamdev/jxbrowser/examples/SslCertificateError.kt
+++ b/examples/src/main/kotlin/com/teamdev/jxbrowser/examples/SslCertificateError.kt
@@ -54,7 +54,7 @@ fun main() {
private fun CertificateErrorCallback.Params.print() = println(
"""
Request URL: ${url()}
- Reason of the certificate error: ${error().valueDescriptor}(${error().number})
+ Reason of the certificate error: ${error()})
Invalid SSL certificate.: ${certificate()}
""".trimIndent()
)
diff --git a/tutorials/eclipse-rcp/pom.xml b/tutorials/eclipse-rcp/pom.xml
index bc41d64..8746dc1 100644
--- a/tutorials/eclipse-rcp/pom.xml
+++ b/tutorials/eclipse-rcp/pom.xml
@@ -26,7 +26,7 @@
17
4.0.13
UTF-8
- 8.15.0
+ 8.16.0
2025-09