On Wed, 8 Mar 2023 07:04:48 GMT, Prasanta Sadhukhan <psadhuk...@openjdk.org> 
wrote:

> `javac --add-modules javafx.swing --add-exports 
> javafx.swing/com.sun.javafx.embed.swing=ALL-UNNAMED --add-modules 
> java.desktop --add-exports java.desktop/sun.swing=ALL-UNNAMED 
> BlurrySwingNode.java`
> 
> BlurrySwingNode.java:49: error: cannot find symbol Object lwFrame = 
> com.sun.javafx.embed.swing.SwingNodeHelper.getLightweightFrame(swingLabelNode);
>  ^ symbol: method getLightweightFrame(SwingNode) location: class 
> SwingNodeHelper BlurrySwingNode.java:50: warning: JLightweightFrame is 
> internal proprietary API and may be removed in a future release 
> System.out.println(((sun.swing.JLightweightFrame)lwFrame).getScaleFactorX()); 
> 1 error 1 warning

Probably this is due to a missing `--module-path`. Eventually, though, a new 
test will need to be in the jfx repo under tests/system and that should already 
have the needed build and run args.

-------------

PR: https://git.openjdk.org/jdk/pull/12848

Reply via email to