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
Mmn.. what you could do is create a model object that wraps around your toolbar and WebPanel.
public class SomeModel{
WebPanel panel;
Toolbar toolbar;
}
Or you could create your toolbar object.. and in the constructor of the toolbar create your webpanel
public WebPanel()
{
this.toolbar= new Toolbar(this);
}
webPanel = new WebPanel();
webPanel.getToolbar() ;
Ok that was cheating lmao It depends whether one is a composite object of another; although I think the Model way is better.. no circular reference.