how to set color to frame background code example Example: how to set frame colo in java getContentPane().setBackground(Color.YELLOW); //Whatever color