JTable, disable user column dragging

前端 未结 2 562
名媛妹妹
名媛妹妹 2021-01-31 00:57

I have declared my JTable as:

data_table = new JTable(info, header) {
    @Override
    public boolean isCellEditable(int row, int column) {
                


        
2条回答
  •  故里飘歌
    2021-01-31 01:40

    data_table.getTableHeader().setReorderingAllowed(false); should do the job, unless you mean that the user can resize column headers.

提交回复
热议问题