When you design an application, you should make the user interface easy to use, intuitive, well-organized, and visually appealing. You can customize the layout of your application to improve its usability and make it fit your needs.
When you add containers in a Java visual class, the editor uses default settings for the layout and alignment of components within those containers. For example, the default layout manager in the visual editor for JPanel is FlowLayout, while other containers have layout set to null.
To specify a layout manager for a container, set the layout property: