private MyFile[] getSelectedFiles() { int[] selectedRows = table.getSelectedRows(); MyFile[] filesTemp = new MyFile[selectedRows.length]; FileTableModel model = (FileTableModel) table.getModel(); int count = 0; for (int i : selectedRows) { i = table.getRowSorter().convertRowIndexToModel(i); filesTemp[count] = model.getFile(i); count++; } return filesTemp; }
public void updateModel(MyFile file, int modelAction) { FileTableModel model = (FileTableModel) table.getModel(); modelWFile = model.getParent().getFile(); FileTransferDialog.updateModelSt(file, modelAction, model, modelWFile); }