src/main/java/org/jwellman/swing/jtable/BetterJTable.java
private static JComponent createCornerComponent(final JTable table) {
        return new JComponent() {
            @Override
            protected void paintComponent(Graphics g) {
                paintHeader(g, table, 0, getWidth());
            }
        };
    }
/**
     * Creates a component that paints the header background for use in a
     * JScrollPane corner.
     */
Creates a component that paints the header background for use in a
JScrollPane corner.
Creates a component that paints the header background for use in a JScrollPane corner .
private static JComponent createCornerComponent(final JTable table) {
        return new JComponent() {
            @Override
            protected void paintComponent(Graphics g) {
                paintHeader(g, table, 0, getWidth());
            }
        };
    }
private static JComponent createCornerComponent ( final JTable table ) { return new JComponent ( ) { @ Override protected void paintComponent ( Graphics g ) { paintHeader ( g , table , 0 , getWidth ( ) ) ; } } ; }
Creates a component that paints the header background for use in a
 JScrollPane corner.
Creates a component that paints the header background for use in a JScrollPane corner .