I'm trying to make a centered grid pane in the JavaFX scene builder which stays a fixed size.我正在尝试在 JavaFX 场景构建器中制作一个居中的网格窗格,它保持固定大小。I'm having a hard time doing this myself.我自己很难做到这一点。Anything I can do?有什么我能做的吗?
I'm trying to accomplish something like this:我正在尝试完成这样的事情:
1 个解决方案
解决方案1
0 2021-06-06 04:47:03
You could use stackpane as parent of your gridpane您可以使用 stackpane 作为您的 gridpane 的父级