Help, how to select the row by "Right-Click" mouse action in JTable?

You know, JTable can select the row by normal click action.

But, JTable can't reponse to select the row by right-click.

And it seems that JTable don't reponse to Right-Clicked:

tt = (JTable)e.getSource();

int row = tt.getSelectedRow();

the row will be old selection row.

How to resolve this?

Thanks

[350 byte] By [starlizha] at [2007-10-2 6:01:06]
# 1
http://forum.java.sun.com/thread.jspa?forumID=57&threadID=583239
camickra at 2007-7-16 13:01:26 > top of Java-index,Desktop,Core GUI APIs...