Raspi 上的 JavaFX Linux - 阶段没有 window
JavaFX on Raspi Linux - Stages do not get a window
我目前正在开发基于 JavaFX 的跨平台应用程序。在 Windows 上运行流畅,但在 Linux 上 Raspberry Pi 3,阶段(又名 JFX window)没有获得 window 帧。
相反,整个背景都在外面,显示 Linux 桌面或其他 windows,变成黑色(包括任务栏),甚至 Alt+Tab 命令也不再起作用。
带有关闭按钮的栏也不显示(仅显示舞台的内容)。
阶段明确设置为"primaryStage.setFullScreen(false);"并且在程序执行期间没有发生错误。
最后是这样的:
Raspberry Pi 必须手动配备 JFX 支持,因为它不是标准的。难道是缺少负责 windows 的某些组件?
有人遇到过类似的事情吗?
非常感谢!
这来自 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.
我目前正在开发基于 JavaFX 的跨平台应用程序。在 Windows 上运行流畅,但在 Linux 上 Raspberry Pi 3,阶段(又名 JFX window)没有获得 window 帧。 相反,整个背景都在外面,显示 Linux 桌面或其他 windows,变成黑色(包括任务栏),甚至 Alt+Tab 命令也不再起作用。 带有关闭按钮的栏也不显示(仅显示舞台的内容)。
阶段明确设置为"primaryStage.setFullScreen(false);"并且在程序执行期间没有发生错误。
最后是这样的:
Raspberry Pi 必须手动配备 JFX 支持,因为它不是标准的。难道是缺少负责 windows 的某些组件? 有人遇到过类似的事情吗?
非常感谢!
这来自 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.