Hi all,
I would like to know how to select a JTable row on a right mouse click?
thanks,
anonymous.
Printable View
Hi all,
I would like to know how to select a JTable row on a right mouse click?
thanks,
anonymous.
what u can do is...
1) addMouseListener
2) when u get mouseClicked event, get the row index from the point using 'rowAtPoint'
3) and select it using 'addRowSelectionInterval'
Hope it solves ur problem.
- UnicMan
thanks unicman,
i just needed to know the name of the api-call as they have changed it now. what a strange name. although i read all the api's more than ten times i did not think that this would be the one which would solve my problem. Thanks anyway. BTW do you have a mail id, where i can to you faster.
shantanu