且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

JavaFX:删除行后更新GridPane的***方法?

更新时间:2023-12-04 17:05:22

你可以使用setVisible(false)和setManaged(false)一起应用于调用删除操作的行元素,但它会导致网格线相互重叠并导致它有更深和更暗的网格线,如果有很多行删除。但它不会产生任何问题,除非你使用它作为GUI功能。

you can use setVisible(false) and setManaged(false) both together applied to row elements that delete action is invoked on, yet it will cause grid-lines overlapping each other and causing it to have darker and darker grid line if many rows get deleted. but it wont create any problem unless if you are using it as GUI feature.