how to change color java swing code example Example: JFrame background color setBackground(Color.red);