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

you first need to apply a layout manager to the application window. Next, you add the components to this window, which is essentially a container for them.

From

Cover of Java Programming

Note

为应用程序做ui的顺序是行为程序窗口加layout manager然后将components添加到窗口(即component的container)