In terms of interface layout, JavaFX has also made additional enhancements. The original AWT/Swing framework has three layouts: streaming layout, grid layout and boundary layout. However, two common layouts are lacking: horizontal layout with left-right arrangement and vertical layout with top-down arrangement. Although the streaming layout is also arranged from left to right, it will automatically change lines if one line is not stuffed, which can not achieve the effect of displaying a fixed line. Although the grid layout of single row and multi-row seems to be vertical, the height of each grid is fixed, and it is difficult to meet the requirement of flexible change of the height of each row. As antiques of the last century, AWT and Swing have already stopped expanding their functions. Fortunately, JavaFX has timely introduced reference controls for horizontal and vertical layout.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |