Accessing JavaFX's StageHelper and ContextMenuContent in Jigsaw

Rahman USTA rahman.usta.88 at gmail.com
Fri Nov 6 10:48:05 UTC 2015


Hi all;

I'm trying Jigsaw build with my JavaFX project, everything is fine but with
two exceptions.

javac could not find/access
com.sun.javafx.scene.control.skin.ContextMenuContent
and com.sun.javafx.stage.StageHelper classes.

I'm using ContextMenuContent to add new menu items to webview's default
context menu. I can set a new ContextMenu for Webviews but, I want to use
actions of default menuitems as well. Code
<https://github.com/asciidocfx/AsciidocFX/blob/master/src/main/java/com/kodcu/component/ViewPanel.java#L95-L127>

I'm doing something when application focus-out, but when an JavaFX Alert is
shown, it acts as focus-out, to avoid this circumstances I'm using
StageHelper Code
<https://github.com/asciidocfx/AsciidocFX/blob/master/src/main/java/com/kodcu/controller/ApplicationController.java#L1037-L1043>

How can I these needs with Jigsaw builds?

Thanks.

-- 
Rahman USTA
Istanbul JUG
https://github.com/rahmanusta <http://www.kodcu.com/>


More information about the openjfx-dev mailing list