Java Swing components usually draw themselves and the graphical view of the components are handled by Java itself. Sometimes though, we want to use the paint method in Java Swing components to add custom graphics to panels and other components.
This video demonstrated Java Swing Graphics with some simple shapes. These shapes can be drawn together to create complex graphical elements in your Java applications.