how to set frame colo in java

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

Also in Java: