Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Why svg <path> hover not getting triggered with JavaFX?

be5cdacc-c5c0-4017-bdb0-435d27d2d150May 3 2020 — edited May 3 2020

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

Comments

Post Details

Added on May 3 2020
0 comments
147 views