code: public void updateGraphics(Graphics2D g)
      {
          g.setFont(font);
          g.setColor(color);
          g.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_OFF);
          g.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
      }
docs: Updates a Graphics according to this context
  @param g Graphics to be updated