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
You can use insert method instead to specify the index of panel items that you want to put your component at:
insert
var index = panel.items.length; panel.insert(index, items); // or if it always going to be the second item panel.insert(1, items);
Here it is in the docs.