I am using Java beans binding to bind Jtable and in which api gives the default values for integer or float values such as 0 or 0.0 as shown below.I would like to avoid the corresponding default values and set the cells as empty except last cell value.
1 WW 88.0 88.0 1021021 340.0
4 TT 55.0 55.0 1021021 340.0
5 PP 66.0 66.0 1021021 340.0
0 0 0 1020
2 gg 66.0 66.0 1021022 320.0
3 LL 658.0 652.0 1021022 320.0
0 0 0 640
and the table should looks like ..
1 WW 88.0 88.0 1021021 340.0
4 TT 55.0 55.0 1021021 340.0
5 PP 66.0 66.0 1021021 340.0
1020
2 gg 66.0 66.0 1021022 320.0
3 LL 658.0 652.0 1021022 320.0
640
any one who can suggest the better way to solve this problem, it will be great full and thanks in advance.
I was using Jtable beans binding and using beansbinding-1.2.1.jar api for auto binding. I downloaded the beansbinding-1.2.1.jar source and make relevant changes in the class
/org.jdesktop.swingbinding.JTableBinding.java
@Override