> The weird thing is that when I select one value in.. say row 3.., that
> value is used not only in row 3, but also row 4,5, and 6 and all the
> way to the bottom-1 of the table.
Sounds like your combo boxes are sharing underlying data models...
> I created a custom celleditor and cellrenderer, code I included below
> for your perusal...
>
> --------main app code-------------
> String[] values = new String[]{" ", "Heading", "Body"};
table.getColumnModel().getColumn(table.convertColumnIndexToView(iFORMAT)).se
tCellEditor(new
> ComboBoxEditor(values));
table.getColumnModel().getColumn(table.convertColumnIndexToView(iFORMAT)).se
tCellRenderer(new
> ComboBoxRenderer(values));
You may get happier results if your renderers don't share the values
array...
6e - 29 Jul 2005 18:14 GMT
I appreciate the idea, I explored it previously by
new ComboBoxEditor( new String[]{" ", "Heading", "Body"}; ... but it
didn't seem to work...
unless I just don't understand what you're trying to tell me... If
this is the case, please explain further.. or let me know if you have
any other ideas?..
Thanks!