更新时间:2023-10-28 13:58:52
您写的内容似乎运行良好.我在javafx 13上尝试了它,然后才起作用. 在将其粘贴到***中时,您在几个地方错过了括号.除此之外,我没有看到任何错误.只需升级您的javafx,它就可以正常工作.
It seems to be working fine what you wrote. I tried it on javafx 13 and it just worked. You missed brackets in a couple of places while pasting it in ***. Other than that I didn't see any mistake. Just upgrade your javafx and it should work.
这是一个工作示例,其中包含您的确切代码
Here is a working example with your exact code
mvn javafx:run
应该工作.