MultiDocumentPanel and child window pos


I use the addDocument() method of the MultiDocumentPanel to add new documents/windows to my component, how do i re-position the windows within the component so that the new document get’s created at coords X,Y?


After you’ve added it, I guess you could use Component::findParentComponentOfClass to get the DocumentWindow, and reposition that.


i simplz used getParentComponent() and setBounds getBounds respectivlz and it worked, thanks for the idea.