MultiDocumentPanel and child window pos


#1

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?


#2

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


#3

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