table.getSelectionModel().addListSelectionListener(new ListSelectionListener() {public void valueChanged(ListSelectionEvent e) {
            if (!e.getValueIsAdjusting()) {
                int selectedIndex = table.getSelectedRow();
                if (selectedIndex > -1) {
                	Object[] rowData = getData(selectedIndex, table);
					p1.e(rowData);
                }
            }
		}}