I have a table say Table-C which gets row data by dragging from Table-A or Table-B. If the row is dragged from Table-A to Table-C then that row is not editable and it should be of a specified color. If a row is dragged from Table-B to Table-C then that row has only some specified columns as editable and that row is shown in another color. I cannot set isCellEditable for some specified rows in Table-C because I cannot control the place where user drops the row on Table-C. My first part of the task was that I should be able drag data which I am able to do successfully. But my second part is that I have to give that isCellEditable property and color to these rows on the fly depending on the table it is from .. this is the part where I am stuck. Any ideas will be appreciated.
I have a table say Table-C which gets row data by dragging from Table-A
Share
You need to supply a marker in the row data that the table model can identify the rows you don’t want to edited, this marker could also be used by the renderers.
One way would be to wrap the incoming row data in a wrapper class as its dropped onto the table, this way you could seed the wrapper with what ever information you wanted/needed