code: public void paintChildren(){
          Graphics2D g = getGraphics();
          Object anti = g.getRenderingHint(RenderingHints.KEY_ANTIALIASING);
          Object textAnti = g.getRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING);
          g.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
          g.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
          super.paintChildren();
          g.setRenderingHint(RenderingHints.KEY_ANTIALIASING, anti);
          g.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, textAnti);
      }
docs: /*-------------------------------------------------[ Antialiasing ]---------------------------------------------------