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

前端 未结 2 872
抹茶落季
抹茶落季 2021-01-01 06:49
Exception in thread \"JavaFX Application Thread\" java.lang.NullPointerException
at com.sun.javafx.scene.control.skin.NestedTableColum nHeader.dispose(NestedTableCol         


        
相关标签:
2条回答
  • 2021-01-01 07:02

    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?

    0 讨论(0)
  • 2021-01-01 07:17

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

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

    0 讨论(0)
提交回复
热议问题