How to resolve nested column in tableview after update version of java-124 in javaFx?

孤者浪人 提交于 2019-11-30 10:23:21

This is noted here, will be fixed in the next release.

https://javafx-jira.kenai.com/browse/RT-36052

SourceSeeker

As this problem still isn't really fixed [JavaFX 8u11] & because the need of an account to view the JIRA thread, i will add the current workarround here. This solution works flawlessly for me, but be aware that it is depraced, which means that the method could be removed with the next update suddenly.

@ ryvantage (I would have commented directly, but I still have < 50 reputation):

This link requires a login. – ryvantage Jul 8 at 2:11

With a TableColumn variable like "tableC" you can do following:

tableC.impl_setReorderable(false);

Also described here: How to prevent TableView from doing TableColumn re-order in javaFX 8?

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!