Chapter 13 Graphical User Interface Components: Part 2 (Web hosting providers)

Chapter 13 Graphical User Interface Components: Part 2 769 Fig. 13.15 Demonstrating the BoxLayoutlayout manager (part 3 of 3). The forstructure at lines 31 32 adds three JButtons to boxes[0](a horizontal Box). The forstructure at lines 35 38 adds three JButtons to boxes[1](a vertical Box). Before adding each button, line 36 adds a vertical strut to the container with staticmethod createVerticalStrutof class Box. A vertical strut is an invisible GUI component that has a fixed pixel height and is used to guarantee a fixed amount of space between GUI components. The argument to method createVerticalStrut determines the height of the strut in pixels. Class Boxalso defines method createHorizontalStrutfor horizontal BoxLayouts. The forstructure at lines 41 44 adds three JButtons to boxes[2](a horizontal Box). Before adding each button, line 42 adds horizontal glue to the container with staticmethod createHorizontalGlueof class Box. Horizontal glue is an invis
Note: In case you are looking for affordable and reliable webhost to host and run your j2ee application check Vision best web hosting services

Leave a Reply