how to change the colour of the button in java code example Example: change button color java swing botton.SetBackground(Color.red);