I have created a column with cells that contain a JTextArea + A JButton inside it, as you can see in the image below in Column 3 :
But i have faced lots of problems with my CellRenderer and CellEditor when updating the cells values in that column, as my code is a bit complicated. So instead i want to replace that column with 2 columns. One column to be of normal String cells and the other to be of JButton cells but these 2 columns should have the same look as column 3 appears in the above image. So my questions are :
1. How can i merge the headers of the 2 columns together ?
2. How can i remove the left borders of the JButtons column ?
If those are fixed, that way the 2 columns will have the same look as the above image + updating the cells values will be much easier.
-------------------------------- Edit : My code sample problems :
Ok guys ... You asked for it. My code is huge but if you can help me fix it, that would be perfect. I have created a running jar sample for my problem & included my source code too. You can download it from here :
The problem is that i use a button to allow sorting table rows(Move them up/down), but when i do this some of the moved cells values are not updated !
You can see the following screenshot : The problem is in the cell editor i am using ... But i can't fix it.