Description and Example of BorderLayout
BorderLayout has five cells called North South East West Center and components are assigned to these cells with the add method. Unlike other add methods, here the order is not important:
- add(new TextField("Title",50), BorderLayout.NORTH);
- add(new TextField("Usually_status_message",50), BorderLayout.SOUTH);
Remember this is default for a Frame Container
The constructor "new BorderLayout()" can have no arguments or "new BorderLayout(hgap, vgap)" can specify numbers of pixels inbetween components.