hi all,
guys i'm having a problem when i want to remove a row from a JTable.i did get the selected rowIndex and passed it to the method remove(int index) of my ArrayList of type array os strings but remove() returned false so i did change the Array List to a Linked List so i do have the ability to remove in the middle of it, anyway it didn't work too.i did implement a method for removing row/s:here is my implementation:
public void removeRows(int[] rowIndexes)
{
for(Integer i: rowIndexes)
{
String caseNum = (String)getValueAt(i, 0);
Boolean b = resultSets.remove(i);
fireTableRowsDeleted(i, i);
}
}
resultSets = new LinkedList<String[]>();//it represents rows of my
// table and each array os strings represents a row in my table.
there is another question how can i make a cell editable and save changes to my DB?
i tryed to implement the method isCellEditable that returns always true as.
All my changes are done in my model.
please advice.