
Home
|
 
JAVA APPLET
Using Border Layout
This layout manager has the concept of four border
regions and a center area. When you add something to a panel that’s
using a BorderLayout you must use an add( ) method that
takes a String object as its first argument, and that string must
specify (with proper capitalization) "North" (top),
"South" (bottom), "East" (right), "West"
(left), or "Center." If you misspell or miss-capitalize, you
won’t get a compile-time error, but the applet simply won’t do what
you expect.
Here is an example using Border
Layout


 |