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