O'Reilly logo
  • Michael ss thinks this is interesting:

Note that each Swing component that can contain other components has a layout manager that decides how the contained components are arranged spatially. The default layout manager for a JFrame is BorderLayout.

From

Cover of Java Programming

Note

button,label control等有layout控制