public void mousePressed(MouseEvent e) {
JXTable table = container.getTable();
if ( (e.getSource().equals(table)) && (e.getButton() == e.BUTTON3) ) {
if ( (table.getRowCount() > 0) && (table.rowAtPoint(e.getPoint()) != -1) ) {
if (table.getSelectedRows().length > 0)
table.removeRowSelectionInterval(0, table.getRowCount() - 1);
table.addRowSelectionInterval(table.rowAtPoint(e.getPoint()), table.rowAtPoint(e.getPoint()));
}
}