Reputation: 900
Am currently working on a cross-platform application based on JavaFX. On Windows it runs smoothly, but on Linux on a Raspberry Pi 3, stages (aka the JFX window) do not get a window frame. Instead the entire background which would be outside, showing the Linux desktop or other windows, turns black (including the taskbar) and not even the Alt+Tab command works anymore. The bar with the close button doesn't show either (only the content of the stage alone).
The stage is explicitly set to "primaryStage.setFullScreen(false);" and no errors occur during execution of the program.
In the end it looks like this:
The Raspberry Pi had to be manually equipped with JFX support as it is not standard. Could it be that some component responsible for windows is missing? Anyone ever encountered something similar?
Huge thanks in advance!
Upvotes: 0
Views: 306
Reputation: 10650
This is from the OpenJDK Wiki:
Note that the default configuration of JavaFX on the Raspberry Pi does not use X11. Instead JavaFX works directly with the display framebuffer and input devices. So you should not have the X11 desktop running when starting JavaFX.
Upvotes: 1