When creating a color, instead of putting RED37 as you wrote here, you instead must write a RGB (red, green, blue) value inside parentheses up to a value of 255. Here is an example which sets the background color to blue:
panel.setBackground(new Color(0,0,255));