Many of the tags provide invisible structure: toolbox, hbox, and Vbox are container tags that affect layout of their collected elements (for example, "Vbox" is short for "vertical box").
在这些标签中,很多都提供了不可见的结构:toolbox、hbox和vbox是容器标签,可以对它们所包含的元素的布局产生影响(比如说,“vbox”是“vertical box”的简写)。
Thus by stacking three HBox instances inside a VBox, you get a flexible grid.
这样,通过在一个VBox内堆叠三个HBox实例,就得到一个灵活的网格。
As its name suggests, HBox is similar to VBox, but it lays out its contents horizontally, from left to right.
从名称可以看出,HBox类似于VBox,但它是从左到右水平放置内容的。
应用推荐