1 | The BorderLayout divides the applet area into 5 spaces, called North, South, East, West, and Center. It tries to make the edges long and skinny, and to leave the Center area as big as possible. |
2 | To get a BorderLayout, use the setLayout method: setLayout ( new BorderLayout ( ) ); |
3 | To add components, also say which area they should go in: add ( button1, BorderLayout.NORTH ); |
4 | North |
5 | South |
6 | W |
7 | e |
8 | s |
9 | t |
10 | E |
11 | a |
12 | s |
13 | t |
14 | You don't have to fill all the areas. |
15 | Center |