I am just wonder why in JTable
There are
TableCellEditor getCellEditor()
TableCellEditor getCellEditor(int row, int column)
But there is only
setCellEditor(TableCellEditor anEditor)
Why JTable doesn't have
setCellEditor(TableCellEditor anEditor, int row, int column) ?
What happen if I want to set each cell in a different editors?!
Daniel Pitts - 08 Nov 2007 21:04 GMT
> I am just wonder why in JTable
>
[quoted text clipped - 11 lines]
>
> What happen if I want to set each cell in a different editors?!
As I understand it, cell editors are free to return whatever component
needed for whatever cell. You would specify the component for the
row/column in the cellEditor, not specify the cell editor for that
row/column.

Signature
Daniel Pitts' Tech Blog: <http://virtualinfinity.net/wordpress/>