My web page contains some components. On click of a icon a model window 1 opens. Model window 1 extends a panel. Model window 1 has a "create" button, on click of which another model window i.e. the Model window 2 opens. On open of Model window 2, I want to hide the Model window 1 or make it inactive so that it will not be selected.
Can I do that any way. I have tried to close() and setVisible() for the Model window 1. It did not work.
In my application both the model windows are pretty much of same size. So when one model window opens on the other one, it looks very odd. for that reason I need to some how make the underneath model window inactive or hidden, so that it will not look odd. I can not close the Model window 1 as it is the parent one. If I close it the child i.e. Model window 2 will not open.