Forum Discussion

sfo_sc's avatar
sfo_sc
Contributor
14 years ago

Right click certain row on a table grid

I have a java swing grid object which contains a lot of logs.  When I look at the object with object spy, the only Action I found is clicking with x and y coordinates.  I do not see ClickItem() menthod in the object the method windows.  I have solve the problem for selecting the right row by using setRowSelectionInterval(nRowIndex,nRowIndex) method.  But if I need to right click the row to bring up a pop up menu, how do I get the x, y coordinates of the row or is there a smarter way to do that action?



Thanks,

Simon

14 Replies