Posted Wednesday, May 19, 2004 @ 22:10:21
JTable jt = quickTable.getTable();
jt.addMouseListener(new MouseAdapter(){
public void mouseReleased(MouseEvent e)
{
if (e.getClickCount() = 2 )
{
int selectedRow = jt.getSelectedRow();
//for example,to get data of selected row
for(int i= 0; i< jt.getColumnCount(); i++)
{
Object columnData = jt.getValueAt(selectedRow, i);
}
//going through the above loop you will get the data for each column in the row
//You can assign this data into your
}
}
});