Laying Out Components within a Container Using Layout Managers General Rules for Using Layout Managers How to Use BorderLayout How to Use CardLayout How to Use FlowLayout How to Use GridLayout How to Use GridBagLayout Specifying Constraints The Applet Example Explained Creating a Custom Layout Manager Doing Without a Layout Manager (Absolute Positioning) Common Layout Problems (and Their Solutions)