When writing java programs with a gui I find that it quickly becomes messy with passing pointers to different components through constructors. I was wondering if this is the best or only way to link components or if there is a more common design pattern for this.
e.g I have a toolbar inside of a panel which needs to interact with a panel inside of that panel.
Thanks