You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Client window file submission entries not removed after each file is submitted
To Reproduce
Steps to reproduce the behavior:
Run the client window class under com.khpc.client
Choose some files
Click submit (configure the environment and start the server first)
See error
Expected behavior
Each entry is removed when that entry is submitted
Code
private void submit() throws UnknownHostException, IOException, InterruptedException {
// The list that contains all the file path that is going to be submitted
List<File> fileList = new ArrayList<File>();
for (int i = 0; i < model.getSize(); i++) {
fileList.add((File) (model.getElementAt(i)));
}
for (File file : fileList) {
FileSendCoordinator.sendFileOnce(file, servIpAddr);
model.removeElementAt(0);
}
model.clear();
}
The text was updated successfully, but these errors were encountered:
Describe the bug
Client window file submission entries not removed after each file is submitted
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Each entry is removed when that entry is submitted
Code
The text was updated successfully, but these errors were encountered: