So far, whenever we "add" a component such as a button or a textfield to an applet, it placed the component in the next available space from left-to-right and from top-to-bottom. |
This is actually the default Layout, called FlowLayout. |
There are additional Layouts that divide the applet area into sub-areas. We will show in the next pages GridLayout and BorderLayout. |
label |
label |
button |
textfield |
textfield |