Jarreth
April 8th, 1999, 04:08 PM
I saw posts dealing with this a week ago, but now that I need the reference I can't find it any where.
I have my own tablemodel (which contains the row/column structure and the column headers), and my own column model (where I add columns based upon the column order in the tablemodel) and a rowheaderrenderer (so I could actually get my column labels to display). I'm calling table.getModel.getColumnName() to retrieve the column name for the RowHeaderRenderer. The problem comes to play when the columns are moved around. It still pulls column(index), but there's no translation done.. ie, C (col 3) is moved to A (col 1). C now says "A", and A says "C"..my labels aren't moving. I hope this is clear and makes sense and someone else has had this problem.
I have my own tablemodel (which contains the row/column structure and the column headers), and my own column model (where I add columns based upon the column order in the tablemodel) and a rowheaderrenderer (so I could actually get my column labels to display). I'm calling table.getModel.getColumnName() to retrieve the column name for the RowHeaderRenderer. The problem comes to play when the columns are moved around. It still pulls column(index), but there's no translation done.. ie, C (col 3) is moved to A (col 1). C now says "A", and A says "C"..my labels aren't moving. I hope this is clear and makes sense and someone else has had this problem.