I have a java application that implements the observer/observable pattern. In my MVC model, the observer class is the View, and the observable class is the controller.
Every changes in my observable class are sent to the observer one using setChanged(); and notifyObservers(); instructions, and the observer class is changed using the update method.
This works allright, the problem is that during the execution, sometimes, the user has to interact with the application using some JButtons defined in the observer class, but I don't know how to send this information to the observable class so that this continues its execution considering the user interaction. in fact, I don't even know if it is possible to do it.
Any help will be appreciated.