src/main/java/org/jwellman/swing/jtable/BetterJTable.java
private static void paintHeader(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);
        CELL_RENDER_PANE.paintComponent(g, component, null, x, 0,
                width, table.getTableHeader().getHeight(), true);
    }
/**
     * Paints the given JTable's table default header background at given
     * x for the given width.
     */
Paints the given JTable's table default header background at given
x for the given width.
Paints the given JTable ' s table default header background at given x for the given width .
private static void paintHeader(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);
        CELL_RENDER_PANE.paintComponent(g, component, null, x, 0,
                width, table.getTableHeader().getHeight(), true);
    }
private static void paintHeader ( 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 ) ; CELL_RENDER_PANE . paintComponent ( g , component , null , x , 0 , width , table . getTableHeader ( ) . getHeight ( ) , true ) ; }
Paints the given JTable's table default header background at given
 x for the given width.
Paints the given JTable ' s table default header background at given x for the given width .