This shouldn't take an index parameter, HBox and VBox already have a well-defined convention of taking a forced size as the second parameter, and this is just confusing.

Maybe a .insert() function or similar?