set the graphics object color to black, draw your rect, set it to green then draw the string.

This simple