|
Hi ,
I have a column in JTable . That
cloumn's different cells has to be rendered by different JComboBox .Currently I'm able to render the all the cells in the column
with a JComboBox but the contents of that JcomboBox is same for all the cells in
that column. Please let me know how to do rendering for different cells in
that column with Different contents of JComboBox
Currently this is what i'm doing . But my
requirement forces me to change vectorOfData in JComboBox for
every cell in myColumn of the
table
TableColumnModel colModel =
table.getColumnModel();
TableColumn myColumn =
colModel.getColumn(1);
JComboBox cBox = new JComboBox(vectorOfData); myColumn.setCellEditor(new
DefaultCellEditor(cBox));
Please answer this urgent
Regards
SUHAS |
