Accessing JavaFX' StageHelper and ContextMenuContent in Jigsaw
Rahman USTA
rahman.usta.88 at gmail.com
Fri Nov 6 10:43:52 UTC 2015
Thank you Kevin, I'll move on openjfx-dev.
2015-11-05 23:41 GMT+02:00 Kevin Rushforth <kevin.rushforth at oracle.com>:
> Yes, this is case of your using internal classes and unsupported methods,
> so let's discuss on openjfx-dev to see if there is another way to do what
> you want to do. I note that in addition to the two internal classes, you
> are also accessing a non-supported (and not documented) impl_* method which
> may or may not continue to work.
>
> -- Kevin
>
>
> Rahman USTA wrote:
>
> 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>
>
> Note: I can also ask the question to openjfx-dev
>
> 2015-11-05 21:51 GMT+02:00 Kevin Rushforth <kevin.rushforth at oracle.com>:
>
>> The StageHelper class is deliberately not exposed for good reasons, since
>> it's purpose is to provide internal access to non-public state.
>>
>> We moved most of the skin classes to a publicly exported
>> javafx.scene.control.skin package as part of JEP 253, but that didn't
>> include ContextMenuContent.
>>
>> Can you explain what you are trying to do with these classes? Perhaps
>> there is an alternative? If this is a detailed JavaFX question, then I
>> suggest asking it on openjfx-dev rather than jigsaw-dev.
>>
>> -- Kevin
>>
>>
>>
>> Rahman USTA wrote:
>>
>>> Hi all;
>>>
>>> I'm trying Jigsaw build with my JavaFX project, everything is fine but
>>> with
>>> two exception.
>>>
>>> javac could not find/access
>>> com.sun.javafx.scene.control.skin.ContextMenuContent
>>> and com.sun.javafx.stage.StageHelper classes.
>>>
>>> Is it possible to use them or are there any alternatives for these
>>> classes.
>>>
>>> Thanks.
>>>
>>>
>>>
>>
>
>
> --
> Rahman USTA
> Istanbul JUG
> https://github.com/rahmanusta <http://www.kodcu.com/>
>
>
--
Rahman USTA
Istanbul JUG
https://github.com/rahmanusta <http://www.kodcu.com/>
More information about the jigsaw-dev
mailing list