|
Hi ,
I have a column in JTable . That
cloumn's cell has to be rendered by different contents in JComboBox
.Currently I'm able to render the whole of 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 table 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
|
