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

前端 未结 2 886
抹茶落季
抹茶落季 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?

提交回复
热议问题