(Solved) Graphics2D.setColor(c) Calls Ignored

Calling to setColor and setStroke in certain sections of my code does not affect the state of the graphics object. I do not create any new graphics objects at any point. The following four lines creates the output below.

      System.out.print(g.getColor());
      g.setColor(debugFillColor);
      System.out.println(debugFillColor);
      System.out.print(g.getColor());

Output:

java.awt.Color[r=255,g=0,b=0]
java.awt.Color[r=0,g=0,b=0]
java.awt.Color[r=255,g=0,b=0]

I set the color to red before calling drawString. debugFillColor is black.

I am not aware of any function that would cause that.