I want to set color properties of panel objects such as buttons. Easy enough...however I want to pass the color in as a variable...such as...

btnClose.setBackground(Color.VARIABLE);

but that doesn't work. How would I pass a variable to this method?

Steve