On a table, with a left click, it will change the selected column and row. However, it does not do this with a right click. Here is the code to enable this. You will but this in event mouse click script.
[code]#Get the current viewport of the JScrollPane(the Component that holds the table)
view = event.source.viewport
#Get the current view position. This is in relation to top right hand corner of the component)
position = view.getViewPosition()
#Find the row that was selected. We subtract 17 as that is the height of the header
row = int((event.y-17+position.getY())/event.source.rowHeight)
#Set event.source.selectedRow to the row selected
event.source.selectedRow = row
#Get the Column Model of the table itself. Because there is only one component in the view, we use index 0
columnModel = view.getComponent(0).getColumnModel()
#Get the index of the column we selected
column = columnModel.getColumnIndexAtX(int(event.x+position.getX()))
#Set event.source.selectedColumn to the column selected
event.source.selectedColumn = column
[/code]