![How to Use BoxLayout (The Java™ Tutorials > Creating a GUI With Swing > Laying Out Components Within a Container) How to Use BoxLayout (The Java™ Tutorials > Creating a GUI With Swing > Laying Out Components Within a Container)](https://docs.oracle.com/javase/tutorial/figures/uiswing/layout/AlignmentDemo-1.png)
How to Use BoxLayout (The Java™ Tutorials > Creating a GUI With Swing > Laying Out Components Within a Container)
![How to Use BoxLayout (The Java™ Tutorials > Creating a GUI With Swing > Laying Out Components Within a Container) How to Use BoxLayout (The Java™ Tutorials > Creating a GUI With Swing > Laying Out Components Within a Container)](https://docs.oracle.com/javase/tutorial/figures/uiswing/layout/BoxLayoutDemo.png)
How to Use BoxLayout (The Java™ Tutorials > Creating a GUI With Swing > Laying Out Components Within a Container)
![How to Use BoxLayout (The Java™ Tutorials > Creating a GUI With Swing > Laying Out Components Within a Container) How to Use BoxLayout (The Java™ Tutorials > Creating a GUI With Swing > Laying Out Components Within a Container)](https://docs.oracle.com/javase/tutorial/figures/uiswing/layout/6fill.gif)
How to Use BoxLayout (The Java™ Tutorials > Creating a GUI With Swing > Laying Out Components Within a Container)
![How to Use BoxLayout (The Java™ Tutorials > Creating a GUI With Swing > Laying Out Components Within a Container) How to Use BoxLayout (The Java™ Tutorials > Creating a GUI With Swing > Laying Out Components Within a Container)](https://docs.oracle.com/javase/tutorial/figures/uiswing/layout/BoxLayoutDemo-wacky.png)
How to Use BoxLayout (The Java™ Tutorials > Creating a GUI With Swing > Laying Out Components Within a Container)
![How to Use BoxLayout (The Java™ Tutorials > Creating a GUI With Swing > Laying Out Components Within a Container) How to Use BoxLayout (The Java™ Tutorials > Creating a GUI With Swing > Laying Out Components Within a Container)](https://docs.oracle.com/javase/tutorial/figures/uiswing/layout/BoxLayoutDemo-center.png)
How to Use BoxLayout (The Java™ Tutorials > Creating a GUI With Swing > Laying Out Components Within a Container)
![How to Use BoxLayout (The Java™ Tutorials > Creating a GUI With Swing > Laying Out Components Within a Container) How to Use BoxLayout (The Java™ Tutorials > Creating a GUI With Swing > Laying Out Components Within a Container)](https://docs.oracle.com/javase/tutorial/figures/uiswing/layout/ListDialogMetal.png)
How to Use BoxLayout (The Java™ Tutorials > Creating a GUI With Swing > Laying Out Components Within a Container)
![How to Use BoxLayout (The Java™ Tutorials > Creating a GUI With Swing > Laying Out Components Within a Container) How to Use BoxLayout (The Java™ Tutorials > Creating a GUI With Swing > Laying Out Components Within a Container)](https://docs.oracle.com/javase/tutorial/figures/uiswing/layout/BoxLayoutDemo-left2.png)