If everything is drawing in the same color, and this is the color that you set in paint(), then it is doing what you told it to do, right?
Most likely, you need to get the current color, set the color you need for the rectangle, draw the rectangle, then reset the color back to what it was before calling super.paint()
Post a code snippet.
|