JRootPane: The Glass Pane
We can use the top “glassPane”
as a drawing area. Since it spans the entire JFrame, we can draw on top of menu bars, and every component.
The JPanel has a remarkable layering feature, allowing us to stack and shuffle components.
public Component getGlassPane();
public void setGlassPane(Component);
public JPanel getContentPane();