Creates two JPanels (opaque), one containing another opaque JPanel, and the other containing a non-opaque JPanel : Basics « Swing JFC « Java
![Creating the Demo Application (Step 2) (The Java™ Tutorials > Creating a GUI With Swing > Performing Custom Painting) Creating the Demo Application (Step 2) (The Java™ Tutorials > Creating a GUI With Swing > Performing Custom Painting)](https://docs.oracle.com/javase/tutorial/figures/uiswing/painting/swing2.png)
Creating the Demo Application (Step 2) (The Java™ Tutorials > Creating a GUI With Swing > Performing Custom Painting)
![A Visual Guide to Layout Managers (The Java™ Tutorials > Creating a GUI With Swing > Laying Out Components Within a Container) A Visual Guide to Layout Managers (The Java™ Tutorials > Creating a GUI With Swing > Laying Out Components Within a Container)](https://docs.oracle.com/javase/tutorial/figures/uiswing/layout/SpringForm.png)