I was a bit confused earlier about how to properly connect a GUI to a logic module, and after asking around I was told of 2 common approaches: the MVC model, and a simpler model where you have a Controller that keeps references to your gui objects. I decided to build the latter and was wondering if anyone can look over my simple design and spot anything that I am missing:
GUI:
The GUI has 3 buttons, 2 text areas, and 1 progress bar.
Controller:
The Controller has references to the 2 text areas and the progress bar so that it can update their content.
Core Logic
The Core Logic returns String data, and also calls a method to update the progress bar
The three buttons call methods in the Controller. The Controller then calls the appropriate method in the Core Logic. Core Logic returns data to the controller, which then later updates the proper text area. Core Logic can also call a method in the Controller to update the progress bar, which then calls the method in GUI to update the bar.