code: protected void paint(SynthContext context, Graphics g) {
          JToolTip tip = (JToolTip) context.getComponent();
  
          Insets insets = tip.getInsets();
          View v = (View) tip.getClientProperty(BasicHTML.propertyKey);
          if (v != null) {
              Rectangle paintTextR = new Rectangle(insets.left, insets.top, tip.getWidth() - (insets.left + insets.right), tip.getHeight()
                      - (insets.top + insets.bottom));
              v.paint(g, paintTextR);
          } else {
              g.setColor(context.getStyle().getColor(context, ColorType.TEXT_FOREGROUND));
              g.setFont(style.getFont(context));
              context.getStyle().getGraphicsUtils(context).paintText(context, g, tip.getTipText(), insets.left, insets.top, -1);
          }
      }
docs: Paints the specified component.
  
  @param context
  context for the component being painted
  @param g
  the {@code Graphics} object used for painting
  @see #update(Graphics,JComponent)