Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想用一个文本框来占据网格窗格的整个空间,但我不想硬编码大小。我是 swt 程序员,我过去常常通过swt.fill,swt.fill它来获取垂直和水平空间。在调整窗口大小时,文本框用于垂直和水平扩展。我可以使用 javafx 来实现吗?提前致谢
swt.fill,swt.fill
为此,您必须设置行跨度和列跨度。例如,如果您的网格窗格中有 4 列,并且您想要一个具有 4 列大小的文本字段,则需要将列跨度设置为 REMAINING。你的领域将占据所有专栏
列跨度