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