every time I add a new row to the table a new combobox is generated..so how can I write an action listern to them
You should NOT be using an ActionListener.
You have three options:
- Override the
setValue(...)
method of the TableModel to do your processing - Add a TableModelListener to the TableModel. Then you do you processing when the TableModelEvent is generated.
- Use a Table Cell Listener on your table to handle the processing.