private void paintCell(Graphics g, Rectangle bounds, TableColumn column, int index, boolean focused) {
    Component component = TableUtil.getRendererComponent(header, column, index, focused);
    if (component != null && isExpandableHintShown(column)) {
      Graphics cg = g.create(bounds.x, bounds.y, bounds.width, bounds.height);
      try {
        int width = Math.max(component.getPreferredSize().width, bounds.width);
        rendererPane.paintComponent(cg, component, header, 0, 0, width, bounds.height, true);
      }
      finally {
        cg.dispose();
      }
    }
    else {
      rendererPane.paintComponent(g, component, header, bounds.x, bounds.y, bounds.width, bounds.height, true);
    }
  }
private void paintCell(Graphics g, Rectangle bounds, TableColumn column, int index, boolean focused)