Using the .stretch property does not help in my case. What I have done, which proves to be the best solution is: <myPanel.width=workarea.width>. Thanks