Introduction to OOP Chapter 22: The AWT and Swing : next previous audio real text

Showing the Use of a Layout Manager

class MyPanel extends JPanel {
	public MyPanel () {
		...
		setLayoutManger (new BorderLayout());
	}
}
Both JPanel and BorderLayout are part of the framework, not written by the end programmer. The end programmer selects the appropriate type of layout manager. In this fashion the framework provides a flexible solution, without making the frame class overly large. (As it would be if it needed to hold all layout managers).
Intro OOP, Chapter 22, Slide 05