I am stuck for long time already trying to solve a basic situation for experienced developers of JUCE but for me until now, impossible to solve.
I am making a application that as a MainWindow and that will open chidren components that will take the whole application desktop.
On this Children components I will open another children or have to come back to prior component.
On this process I am doing this way.
On main i declare setContentOwned (new MainContentComponent(), true) and also mainWindow = new MainWindow().
On component MainWindow i do a addAndMakeVisible(ChildComponent()).
How can i use a button to close my ChildComponent() and get back to my component MainWindow ?
Thanks for all your time,