Revert "UOCL-285: payment screen hanging (#42)"

This reverts commit 0c6b84dd5f.
This commit is contained in:
2025-03-28 11:14:51 +00:00
parent 1f984b560c
commit acc38ba567
9 changed files with 26 additions and 62 deletions
@@ -41,8 +41,6 @@ import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
/**
@@ -278,7 +276,6 @@ public class CustomerCSVImport extends JPanel implements JPanelView {
* the UI responsiveness.
*/
private void setWorker() {
ExecutorService customExecutor = Executors.newCachedThreadPool();
progress = 0;
webPBar.setStringPainted(true);
@@ -307,8 +304,7 @@ public class CustomerCSVImport extends JPanel implements JPanelView {
}
}
};
// pbWorker.execute();
customExecutor.submit(pbWorker);
pbWorker.execute();
}
/**
@@ -44,8 +44,6 @@ import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.UUID;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
/**
@@ -294,7 +292,6 @@ public class JPanelCSVImport extends JPanel implements JPanelView {
* the UI responsiveness.
*/
private void setWorker() {
ExecutorService customExecutor = Executors.newCachedThreadPool();
progress = 0;
webPBar.setStringPainted(true);
@@ -323,8 +320,7 @@ public class JPanelCSVImport extends JPanel implements JPanelView {
}
}
};
//pbWorker.execute();
customExecutor.submit(pbWorker);
pbWorker.execute();
}
/**
@@ -43,8 +43,6 @@ import java.sql.SQLException;
import java.util.List;
import java.util.Properties;
import java.util.UUID;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
/**
@@ -513,7 +511,6 @@ public class StockQtyImport extends JPanel implements JPanelView {
* the UI responsiveness.
*/
private void setWorker() {
ExecutorService customExecutor = Executors.newCachedThreadPool();
progress = 0;
webPBar.setStringPainted(true);
@@ -542,8 +539,7 @@ public class StockQtyImport extends JPanel implements JPanelView {
}
}
};
//pbWorker.execute();
customExecutor.submit(pbWorker);
pbWorker.execute();
}
/**