Vector/Table Deleting Row Problem.
Hi I use Vectors with my Tables. When I Remove a row and then insert a new. It first sends empty rows equal to the number of deleted, before inserting the new one. I use code below to delete rows.
Code:
removeOrderButton.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent event){
int getRow;
getRow = handleAllTable.getSelectedRow();
handleAllModel.removeRow(getRow-1);
}
});
It´s most likley that i need to update/remove from the vector to ?