Possible Duplicate:
Set Jtable/Column Renderer for booleans
Right now I have in my Jtable:
but I want to have:
Therefore ,I guess, I have to covert my trues/false's into object like:
Object rowData[][] = { { "1", Boolean.TRUE }, { "2", Boolean.TRUE }, { "3", Boolean.FALSE },
{ "4", Boolean.TRUE }, { "5", Boolean.FALSE }, };
Right now I get the data like this:
int i=0;
data=new Object[tupel.size()][1];
while(i<tupel.size()){
row=tupel.get(i);
data[i][0]=new Boolean(row.isTrueorFalse());//my "Boolean method"
i++;
}
}
So my question is:
How to convert my data into Objects so that I have diplayed the ticks?
UPDATE
The isTrueorFalse Method:
public boolean isTrueorFalse() {
return isTrueorFalse;
}