Move row up
hi,
I have a small doubt in moving a row. I want the selected row in jTable to be moved one row up., but it is not working out for me,,,
the code i have written is:
((DefaultTableModel)jTable1.getModel()).moveRow(jTable1.getSelectedRow(),jTable1.getSelectedRow()-1,1);
please help me out of this...

