Why svg <path> hover not getting triggered with JavaFX?
I'm building a PyCharm plugin using Java 11 and the standalone JavaFX module.
The plugin contains javafx.scene.web.WebView that loads its content from an HTML file. The HTML contains, beside standard HTML elements, SVG elements, such as <rect> and <path>.
I'm facing a problem with the JavaFX WebView behavior - when I hover over a <path> element, the hover action is never get triggered, and neither do the hover styles. When I run the same code in Chrome, it works correctly. When I run using Java 8 with JavaFX, it works correctly too.
Does JavaFX fully support SVG, and this is just a bug?
Is there any workaround I can try to solve this problem?
My build.gradle:
plugins {
id 'java'
id 'org.jetbrains.intellij' version '0.4.5'
id 'org.openjfx.javafxplugin' version '0.0.8'
}
repositories {
mavenCentral()
}
javafx {
version = "11"
}
JAVA Runtime version: 11.0.6+8-b765.25 x86_64
Please sign in to leave a comment.
We recommend switching to JCEF as we plan to deprecate using JavaFX in plugins https://www.jetbrains.org/intellij/sdk/docs/reference_guide/jcef.html
Regardless, it might be a bug/missing feature in JavaFX WebView implementation but that is out of scope of the IDE's responsibility.
Thanks for your answer!
I already start to convert my usages of JavaFX to JCEF.
I'm a bit struggling configure the whole process, maybe you will have some answers:
1. How do I enable the registry value `ide.browser.jcef.enabled` to the user? or it must be done manually?
2. After I enabled this value, I'm getting an error of `java.lang.UnsatisfiedLinkError: no jcef in java.library.path`, runtime and jvm version are attached below.
3. Do I need any further configurations?
thanks in advance
1. must be done manually
2./3. is all covered in setup instructions linked from above docs: https://youtrack.jetbrains.com/issue/IDEA-231833#focus=streamItem-27-3993099.0-0
Thanks again Yann.
I'm really struggling to make it work.
There is any template project using JCEF with ToolWindow?
When I'm running the gradle:runId it doesn't work, I also downloaded the IntelliJ 2020.2 EAP but it doesn't work there as well, I tried to build it and install it as a plugin, same result. As it looks like IntelliJ doesn't recognize JCEF.
Do you have any suggestions?
Please share a minimum sample project to reproduce. JCEF must work in 2020.2 EAP by default.