If I have Swing GUI class and application, how should I manage communication between these objects? Should I pass GUI object link to app or app link to GUI?
Example:
public class App{
public App() { GUI gui = new GUI(this) }
}
or
public GUI{ public GUI() { App gui = new App(this) } }