I have a window with panel in inside the window. I add components to the panel dynamically. These components are in \'hbox\' layout so that they are arranged horizontally. On cl
I found the cause of the problem.
Cause: when we add components with same 'id' to a panel, then the newly added component will get added to the top of the panel.
Fix: Use 'itemId' instead of 'id' while adding same component to the panel.
Hope this will be useful for someone.