BoxLayout is a Swing layout manager that arranges components in a row or a column.