Selected new row but it display the data of first time selected row only

In my code i did in UI on left side i create buttons just like gmail inbox,list of tasks displayed in the table.i select the row,displays the row details in the subwindow, when i click on complete task button the task completed it goes to next task,completed task removed from table,and new task into the table.but when select the one row subwindow opened and i close the subwindow(taskDetails).i select the another row but it always displays the first time selected row details only.
my intention is i build ui just like sample mail box.
12897.java (8.37 KB)
12898.java (991 Bytes)