0

I am having a problem regarding adding the mouseListener to the separate views in one column of jTable. enter image description here

I have tried to design this using SplitPane. But then i have a problem in handle the click event in differentiating the views. I am not able to identify whether mouse click is done on Edit or Delete

Please help.

Anchit Mittal
  • 3,412
  • 4
  • 28
  • 48
  • 2
    You'll need a custom [`CellEditor`](http://docs.oracle.com/javase/tutorial/uiswing/components/table.html#editor), for [example](http://stackoverflow.com/a/11179669/230513), not a `MouseListener`. – trashgod Aug 28 '14 at 10:19
  • for other columns i need mouseListener to do other tasks – Anchit Mittal Aug 28 '14 at 10:33
  • This possible [duplicate](http://stackoverflow.com/q/24367799/230513) explains how to distinguish button clicks inside a table cell. – trashgod Aug 28 '14 at 10:40

0 Answers0