Check out example codes for "setbackground java". It will help you in understanding the concepts better.

Code Example 1

setBackground(Color.cyan);   // sets predefined color cyan to background of frame

Learn ReactJs, React Native from akashmittal.com