I'm about to create a desktop application. I decided to do it in swing. Now I am confused about the architecture that I'm going to use. I decided to do something like.
ui-controller-service-dao
I'm confused mainly in the relationship between the controller and the UI. I understand that the controller does the operations that the ui needs to do like the controller handles the events of the ui, such as when a button is click. But for cases like when a button is clicked then disable some ui, it means the controller needs to acces the ui to do the disabling. Now how can provide access to ui from controller?