void (Graphics g, JTable table, int x, int width) { TableCellRenderer renderer = table.getTableHeader().getDefaultRenderer(); Component component = renderer.getTableCellRendererComponent(table, "", false, false, -1, 2); component.setBounds(0, 0, width, table.getTableHeader().getHeight()); ((JComponent)component).setOpaque(false); myRenderPane.paintComponent(g, component, null, x, 0, width, table.getTableHeader().getHeight(), true); }