dear bunch of developers,
i have this JTable and i'm contructing it with a model object extended from a DefaultTableModel. The way i'm passing the data to it is by means of a vector:
public void setData(List<Object> data)
{
myTableModel.setDataVector(data);
}
...and in my table model i have something like this:
//...
List<String> columnIdentifiers = new Vector<String>();
columnIdentifiers.add("COLUMN_A");
columnIdentifiers.add("COLUMN_B");
columnIdentifiers.add("COLUMN_C");
columnIdentifiers.add("COLUMN_D");
this.setDataVector(data, this.columnIdentifiers);
//...
...and now i want to set a cell renderer for the first column:
table.getColumn("COLUMN_A").setCellRenderer(
new MyCellRenderer());
...and i'm mad 'cos i cant get the cell to render the icon it is supposed to.
anybody has already experienced this?
thanks in advance