code: @Override
      public void setColor(Color c) {
          if (c == null) {
              return;
          }
          this.color = c;
          this.paint = c;
      }
docs: Sets the foreground color.  This method exists for backwards
  compatibility in AWT, you should use the
  {@link #setPaint(java.awt.Paint)} method.
  
  @param c  the color ({@code null} permitted but ignored).
  
  @see #setPaint(java.awt.Paint)