Commit 042ff909 authored by Xiaoying Pu's avatar Xiaoying Pu

oh that it's how my code works

parent 802e1ac3
......@@ -65,10 +65,16 @@ public class DigitTaskFacade {
theView.getLblPressEnter().setVisible(false);
theView.setVisible(true);
this.eventListenerList = new ArrayList<>();
// this listens to the GUI
theController.addListener(new EndRecallingDigitListener());
});
}
/**
* Trial registered to here /
*
* @param listener Trial's Response listener
*/
public void addListener(EventListener listener) {
java.awt.EventQueue.invokeLater(() -> {
this.eventListenerList.add(listener);
......
......@@ -68,7 +68,7 @@ public class Trial extends Thread {
}
/**
* Control over both primary and secondary tasks
* Control over both primary and secondary tasks yeah
*/
class ResponseListener extends EventListener {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment