与其他应用程序在同一个桌面上的全屏 JavaFX 程序?
Fullscreen JavaFX program in the same desktop with other applications?
我正在制作一个全屏 JavaFX 程序,但我希望它 运行 作为后台屏幕保护程序与其他应用程序同时 运行 在它上面。现在,它会自动为该程序创建一个单独的桌面。有什么解决办法吗?
Swing 绝对是一个选择。从这里开始:
public class MyClass {
public void myAction () {
// your logic goes here
System.out.println("hello");
}
public static void main(String[] args) {
MyClass mc = new MyClass();
mc.myAction();
}
}
我正在制作一个全屏 JavaFX 程序,但我希望它 运行 作为后台屏幕保护程序与其他应用程序同时 运行 在它上面。现在,它会自动为该程序创建一个单独的桌面。有什么解决办法吗?
Swing 绝对是一个选择。从这里开始:
public class MyClass {
public void myAction () {
// your logic goes here
System.out.println("hello");
}
public static void main(String[] args) {
MyClass mc = new MyClass();
mc.myAction();
}
}