|
|
Selecting a layout manager
Changing the layout manager for a particular AWT object is
straightforward: use the setLayout() method
setLayout should be given the name of a new object of the
appropriate layout manager
For
example, here is how to create a new Panel and spacify that it has a 'border' layout.
Panel p = new
Panel();
P.setLayout
(new BorderLayout());
|
|