@Override
    public void update(Graphics g, JComponent c) {
        if (c.getBorder() instanceof AeroToolTipBorder) {
            Graphics2D g2 = (Graphics2D) g;
            g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                        RenderingHints.VALUE_ANTIALIAS_ON);
            Dimension size = c.getSize();
            Insets insets = c.getInsets();
            Color background = c.getBackground();
            if (background instanceof UIResource) {
                g2.setPaint(new GradientPaint(insets.left, insets.top, TOP_COLOR,
                        insets.left, size.height - insets.bottom, BOTTOM_COLOR));
            } else {
                g2.setPaint(background);
            }
            g2.fill(new RoundRectangle2D.Double(
                        0, 0, size.width - 1, size.height - 1, 6, 6));
            super.paint(g, c);
        } else {
            super.update(g, c);
        }
    }