Evening everyone.
I seem to have hit an odd problem when trying to pass an object to another objects constructor who\'s constructor also relies on the object it\'s being
This will lead to problems as you can see. Instead of this approach, you can use the setter-getter method approach where you construct the object with a default constructor such as
ToolBar myToolBar = new ToolBar();
WebPanel webPanel = new WebPanel();
and then use the setter methods to set the required instance variables which are required for the object to be fully constructed.
myToolBar.setWebPanel(webPanel);
webPanel.setToolBar(myToolBar);