I am using OpenJFX 11 and set it up according to the documentation here:
https://openjfx.io/openjfx-docs/#install-javafx
I used their HelloFX example and compiled it like this:
cromon@cromon-elementary:~/temp$ /opt/java/latest/bin/javac --module-path $PATH_TO_FX --add-modules=javafx.controls HelloFX.java
This works fine, also running it in theory works:
cromon@cromon-elementary:~/temp$ /opt/java/latest/bin/java --module-path $PATH_TO_FX --add-modules=javafx.controls HelloFX
No issues so far. However the created window is undecorated (i.e. has no system menu, only the content area, see screenshot below for an example). I think thats not how it should be. Is anyone having similar issues?
OS information:
NAME="elementary OS"
VERSION="5.0 Juno"
Java information:
cromon@cromon-elementary:/opt$ /opt/java/latest/bin/java -version
openjdk version "11.0.1" 2018-10-16
OpenJDK Runtime Environment 18.9 (build 11.0.1+13)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.1+13, mixed mode)
And according to the window from HelloFX
: "Hello, JavaFX 11.0.1, running on Java 11.0.1"
And here is an example from Swing:
val frame = JFrame()
frame.title = "I have a system menu and everything"
frame.preferredSize = Dimension(500, 300)
frame.pack()
frame.isVisible = true