What is the best way to link your application to Swing GUI?
- by Java Coder
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)
}
}