Check out example codes for "how to set frame colo in java". It will help you in understanding the concepts better.

Code Example 1

getContentPane().setBackground(Color.YELLOW);  //Whatever color

Learn ReactJs, React Native from akashmittal.com